Basic and Advance C Question:
Download Questions PDF

How do we print only part of a string in C?

Answer:

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

Download C Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What is a pointer value and address in C?Wap to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group.?