33.
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int k = 8;
    int m = 7;
    k < m ? k = k + 1 : m = m + 1;
    printf("%d", k);
}

35.
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int a = 3;
    int b = ++a + a++ + --a;
    printf("Value of b is %d", b);
}

38.
What will be the output of the following C code?
#include<stdio.h>
int main()
{
    int a = 1, b = 2, c = 3, d = 4, e;
    e = c + d = b * a;
    printf("%d, %d\n", e, d);
}

39.
While swapping 2 numbers what precautions to be taken care?
b = (b / a);
a = a * b;
b = a / b;

40.
What is the problem in the following variable declaration?
float 3Bedroom-Hall-Kitchen?;

Read More Section(C Fundamentals)

Each Section contains maximum 100 MCQs question on C Fundamentals. To get more questions visit other sections.