31. | What would be the output of the following program? #include
main()
{
char str[]="S\065AB";
printf("\n%d", sizeof(str));
}
|
|||||||
|
32. | What will be output if you will compile and execute the following c code? #include
int main()
{
int a=5;
float b;
printf("%d",sizeof(++a+b));
printf(" %d",a);
return 0;
}
|
|||||||
|
33. | What will be output if you will compile and execute the following c code? #include
int main()
{
char c='0';
printf("%d %d",sizeof(c),sizeof('0'));
return 0;
}
|
|||||||
|
34. | What will be output when you will execute following c code? #include int main()
{
double num=5.2;
int var=5;
printf("%d\t",sizeof(!num));
printf("%d\t",sizeof(var=15/2));
printf("%d",var);
return 0;
}
Choose all that apply:
|
|||||||
|
35. | How are real floating-type numbers treated in C? #include
main()
{
printf("%d",sizeof(7.0));
}
| |||||||
|
36. | What will be output? void main()
{
const int a=5;
a++;
printf("%d",a);
}
|
|||||||
|
« previous
1
2
3
4
5
6