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
What are the functions to open and close file in c language?
Can you write the algorithm for Queue?
What happens if a header file is included twice?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
Differentiate between #include<...> and #include '...'
Explain logical errors? Compare with syntax errors.
What does it mean when the linker says that _end is undefined?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
How does pointer work in c?
What is pointer & why it is used?
write a c program for swapping two strings using pointer
what are non standard function in c
What is the use of structure padding in c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is data type long in c?