If the declaration of the variables is-
int a=4;
char b='z';
float c=2.3;
to print the values stored in variables-
printf("a=℅d",a);
printf("\nb=℅c",b);
printf("\nc=℅lf",c);
%d belongs to int
%c belongs to char
%lf belongs to long int
Here, the values stored at a,b,c are comes on the place of %d,%c,%lf respectively.
\n is used for new line.
If you write the above in program then in output the data in printf statements will be in three different lines.
The output of above statements will be-
a=4
b=z
c=2.3
int a=4;
char b='z';
float c=2.3;
to print the values stored in variables-
printf("a=℅d",a);
printf("\nb=℅c",b);
printf("\nc=℅lf",c);
%d belongs to int
%c belongs to char
%lf belongs to long int
Here, the values stored at a,b,c are comes on the place of %d,%c,%lf respectively.
\n is used for new line.
If you write the above in program then in output the data in printf statements will be in three different lines.
The output of above statements will be-
a=4
b=z
c=2.3