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 |
a<<1 is equivalent to a) multiplying by 2 b) dividing by 2 c) adding 2 d)none of the above
what is compiler
What is variable declaration and definition in c?
What is d'n in c?
Explain about the functions strcat() and strcmp()?
where does malloc() function get the memory?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Why do we use static in c?
how to print 2-D array using a single for loop?
2 Answers Mind Tree, TCS, Value Labs,
What is %s and %d in c?
Explain the difference between exit() and _exit() function?
Juxtapose the use of override with new. What is shadowing?