Cquiz 1
Cquiz 1
int main()
{
short char c1; // I.
long char c2; // II.
short int num1; // III.
long int num2; // IV.
short float f1; // V
long float f2; // VI
short double d1; // VII
long double d2; // VIII
}
3. 5
Which of the following statement is correct about the code snippet given below?
num = 5;
printf( “%d”, ++num++ );
5. #include <stdio.h>
int main()
{
int num = 25;
num = !num > 23;
printf("num = %d", num);
}
Answers
2. num = 0
2. 4 4 4 4 8 4 4 8 20.80 44.60
0. int main()
{
int a = 1, b=1,c=1,d;
d = b++ && ++a == --c ;
printf("d = %d",d);
}
Answers
1. d = 0