what will be the output:
main(){char ch;int a=10;printf("%d",ch);}
Answer Posted / reddy
ans ch=0
if we print a it wil be 10
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
Explain indirection?
What is volatile variable in c?
How can I avoid the abort, retry, fail messages?
Are there any problems with performing mathematical operations on different variable types?
How do I get an accurate error status return from system on ms-dos?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
Can you please explain the difference between exit() and _exit() function?
What is volatile variable how do you declare it?
Explain how can a program be made to print the line number where an error occurs?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
How do I copy files?
How can I convert a number to a string?
In which header file is the null macro defined?
Explain what math functions are available for integers? For floating point?
Is there a built-in function in C that can be used for sorting data?