K
Q. What will be the output of the following C code?
#include <stdio.h> int main() { int a,b,c; a=0x10; b=010; c=a+b; printf("%d",c); return 0; }
0x10 is hex value it's decimal value is 16 and 010 is an octal value it's decimal value is 8, hence answer will be 24.
You must be Logged in to update hint/solution
Q. What is the output of this program?
Q. What will be output if you will compile and execute the following c code?
Q. The C-preprocessors are specified with _________ symbol.
Q. What is the value of an array element which is not initialized?
Q. Which of the following is not a valid C variable name?
Q. What is the maximum number of statements that can present in a C function?
Discusssion
Login to discuss.