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 do you use a pointer to a function?
What are the features of c language?
What is d'n in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
Is c is a low level language?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
p*=(++q)++*--p when p=q=1 while(q<=6)
Explain how can type-insensitive macros be created?
What is %d used for?
What is restrict keyword in c?
Explain the advantages and disadvantages of macros.
What is volatile variable in c with example?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is a volatile keyword in c?