Which type cannot be the controlling expression of a switch statement?
What does a class in C++ contain?
Can the getch() function be used to echo the input?
What is the output of the following C code?
int main()
{
printf("%c\n","abcdefgh"[4]);
}
What is the output of the following C code?
int main()
{
int var = -(-3);
printf("%d", var);
}
#include
What happens if the following line is executed in C and C++?
const int a;
What will be the output of the following C code?
int main()
{
register int a = 10;
{
register int a = 15;
printf("%d ", a);
}
printf("%d ", a);
return 20;
}
What is the output of the following program?
int main()
{
char arr[]="hello\0\0\0\0\0";
char arr1[]="hello\n\n\n\n\n";
printf("%d %d\n",sizeof(arr),strlen(arr));
printf("%d %d\n",sizeof(arr1),strlen(arr1));
}
Which of the following statements is correct?