what will be the output:
main(){char ch;int a=10;printf("%d",ch);}

Answer Posted / bharath s

The answer is Garbage value...
The answer willbe lik -113...Depending upon the compailer
If we declare as..
static char ch;
Then Answer is 0.....

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 5 elements of structure?

688


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

819


What is wrong with this code?

778


What is the difference between single charater constant and string constant?

729


provide an example of the Group by clause, when would you use this clause

1826






can we implement multi-threads in c.

764


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

715


Explain how does flowchart help in writing a program?

743


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

773


What is difference between far and near pointers?

703


What is the explanation for modular programming?

786


How do I copy files?

705


How many bytes is a struct in c?

816


Here is a neat trick for checking whether two strings are equal

659


What is size of union in c?

668