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

Answer Posted / sadasiva

It gives compilation warning but not Error.
While running ,gives Run time check error and prints some
garbage value.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are enumerations really portable?

597


What is c variable?

555


What happens if a header file is included twice?

601


Why isn't any of this standardized in c? Any real program has to do some of these things.

627


What is the use of getchar() function?

631






What was noalias and what ever happened to it?

592


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

747


What is calloc()?

630


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1455


What are terms in math?

595


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1493


Is javascript based on c?

595


Explain output of printf("Hello World"-'A'+'B'); ?

978


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

685


How can I sort more data than will fit in memory?

631