what will be the output:
main(){char ch;int a=10;printf("%d",ch);}
Answer Posted / sirajuddin
variable ch is of character type and nothing is assigned
to it where as 'a' is of interger type.
In the printf statement we are placing variable 'ch' along
with %d which will display a garbage value.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What is wild pointer in c with example?
What is the purpose of sprintf?
What is difference between stdio h and conio h?
What are data types in c language?
There seem to be a few missing operators ..
What is the purpose of void pointer?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
write a program to display all prime numbers
Explain the ternary tree?
What is the difference between malloc calloc and realloc in c?
Is c is a low level language?
What is getch?
Why is struct padding needed?
Should I learn c before c++?