char ch=10;printf("%d",ch);what is the output
Answer Posted / abdur rab
The output will be 10.
char consists of 1 byte = 8 bits
it can hold any value between 0 - 127
an unsigned char can hold any 0 - 256
the asci value 10 is newline,
so if u format it as char using %c
printf ( "\n|%c|", ch ); the 10 is converted to new line
otherwise if u format it to int using %d, it ud print 10
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
How can I find the modification date of a file?
What is the explanation for the dangling pointer in c?
What is meant by gets in c?
How can you convert integers to binary or hexadecimal?
Explain what is wrong with this program statement? Void = 10;
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is 1f in c?
What are local variables c?
Explain what happens if you free a pointer twice?
write a proram to reverse the string using switch case?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
what type of questions arrive in interview over c programming?
What tq means in chat?