66.
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int k = 4;
    int *const p = &k;
    int r = 3;
    p = &r;
    printf("%d", p);
}

68.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 1;
    int y =  x == 1 ? getchar(): 2;
    printf("%d\n", y);
}

69.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int y = 0;
    if (1 |(y = 1))
        printf("y is %d\n", y);
    else
        printf("%d\n", y);
 
}

70.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int y = 1;
    if (y & (y = 2))
        printf("true %d\n", y);
    else
        printf("false %d\n", y);

}

Read More Section(C Fundamentals)

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