K
Q. What will be the output of the following C code?
#include <stdio.h> int main() { unsigned char c=290; printf("%d",c); return 0; }
290 is beyond the range of unsigned char. Its corresponding value printed is: (290 % (UCHAR_MAX +1) where UCHAR_MAX represents highest (maximum) value of unsigned char type of variable. The value of UCHAR_MAX=255. Thus it prints 290 % (UCHAR_MAX+1)=34
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Can programmers create their own header files?
Q. Which programming language is more faster among these?
Q. Which is the correct format specifier for double type value in C?
Q. What is the output of C Program with String Pointer?
Q. A string is terminated by ___
Q. What is the scope of extern class specifier?
Q. Which of the following is not possible statically in C language?
Q. Choose a correct statement about C Function.?
Q. How many digits are present after decimal in float value?
Discusssion
Login to discuss.