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
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
i want to know the procedure of qualcomm for getting a job through offcampus
Why double pointer is used in c?
Why can’t we compare structures?
Explain what is the use of a semicolon (;) at the end of every program statement?
How can I write functions that take a variable number of arguments?
Why do we need a structure?
List some applications of c programming language?
What are loops c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
How do you view the path?
What is a c token and types of c tokens?
Explain how can I manipulate strings of multibyte characters?
Explain the red-black trees?
What is #include called?