Answer to Question #54216 in C for sachhya p tiwari

Question #54216
The below written program gives the output 100

#include<stdio.h>
int a;
main()
{

printf("%d\n",a);

}
a=100;

but if we use character type input insted of integer type it will show an error


program like

#include<stdio.h>
char a;
main()
{

printf("%c\n",a);

}
a='A';

Why is this happening?
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS