Question: How do you print only part of a string?

Question: How do you print only part of a string?
Answer: /* Use printf () to print the first 11 characters of source_str. */

printf (“First 11 characters: ‘%11.11s’n”, source_str);

No comments:

 
Top Blogs