char ch=10;printf("%d",ch);what is the output
Answer Posted / rogerthatrambo
although i know the answer:
what should be output of this:
do it without running.
int main()
{
char ch='48';
printf("%d %c",ch,ch);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
is it possible to create your own header files?
What is the hardest programming language?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What is the advantage of using #define to declare a constant?
What is pass by reference in functions?
Tell me the use of bit field in c language?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
Can you subtract pointers from each other? Why would you?
What is the sizeof () a pointer?
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 ].
What is difference between constant pointer and constant variable?
Can we assign integer value to char in c?
Explain enumerated types in c language?
What does %2f mean in c?