what will be the output:
main(){char ch;int a=10;printf("%d",ch);}
Answer Posted / lnk
In the above coding ...
there is a char "ch " assigned with out a value
and a int" a " assigned with a value ...
and it compiles to print a interger (%d) ...
but tries to read a int value fronm ch (which does not
match the data type ) so it gives garbage value .with
compile time warning !
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of a semicolon (;) at the end of every program statement?
what is a constant pointer in C
What is function what are the types of function?
what is the significance of static storage class specifier?
Tell me what is the purpose of 'register' keyword in c language?
What is memory leak in c?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Explain how can you restore a redirected standard stream?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is const keyword in c?
Create a simple code fragment that will swap the values of two variables num1 and num2.
Can you add pointers together? Why would you?
The __________ attribute is used to announce variables based on definitions of columns in a table?
Is c compiled or interpreted?
Is c still used?