Interview Questions

How do you print only part of a string?

C Interview Questions and Answers


(Continued from previous question...)

How do you print only part of a string?

/* Use printf() to print the first 11 characters of source_str. */
printf(First 11 characters: ‘%11.11s’n, source_str);

(Continued on next question...)

Other Interview Questions