CSE MCQs :: C-MCQs
-
What is the output of this C code?
int main()
{
enum {ORANGE = 12, MANGO, BANANA = 11, APPLE};
printf("APPLE = %d\n", APPLE);
} -
What is the output of this C code?
int main()
{
printf("C programming %s", "Class by\n%s AllIndiaExams", "SUPER");
} -
For the following code snippet:
char *str = "AllIndiaExams.in\0? "training classes;
The character pointer str holds reference to string: -
What is the output of this C code?
#define a 20
int main()
{
const int a = 50;
printf("a = %d\n", a);
} -
What is the output of this C code?
int main()
{
int var = 010;
printf("%d", var);
} -
What is the output of this C code?
int main()
{
printf("AllIndiaExams\r\nclass\n");
return 0;
} -
What is the output of this C code?
int main()
{
const int a;
a = 32;
printf("a is %d", a);
return 0;
} - Which is false?
-
Whats is the output of this C code?
void main()
{
int const k = 11;
k++;
printf("k is %d", k);
}