The following sequence is meant to print the string Jan, but it doesn’t. What change needs to
be made for obtaining the correct output?
char s[10] = “JanFebMar”;
printf(“%3s”, s);
Write a program to print a truncated string that is defi ned in the program. The width of the
truncated portion must be set by the user.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here