C examples for Data Type:Introduction
You can use multiple conversion specifiers in a single printf() function
#include <stdio.h> int main()/*from w ww .j ava2 s .c o m*/ { char firstInitial, middleInitial, lastInitial; firstInitial = 'M'; middleInitial = 'A'; lastInitial = 'V'; printf("My Initials are %c.%c.%c.", firstInitial, middleInitial, lastInitial); return 0; }