what will be the output:
main(){char ch;int a=10;printf("%d",ch);}
Answers were Sorted based on User's Feedback
Answer / kanmani
I think this program produce some garbage value.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vikram
output will be any garbage value since ch is not assigned
any value
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / thirupathi reddy
it doesn't give error
it depends up on compiler u use. but gives some value
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / p.thriveni
it will giv the warning as 'a' is assigned a avalue that
is never be used.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is the benefit of using const for declaring constants?
What are the different pointer models in c?
Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }
Where define directive used?
how to create c progarm without void main()?
Are bit fields portable?
Give a fast way to multiply a number by 7
15 Answers Accenture, Aricent, Microsoft,
Explain how can I write functions that take a variable number of arguments?
what are the advantages & disadvantages of unions?
What are qualifiers and modifiers c?
How many keywords are there in c?
praagnovation