C MCQ on Logical Operators

5
Created on By useruser

C MCQ

MCQ's related to C Language

1 / 5

#include <stdio.h>

void main()

{

int k = 0;

for (k)

printf("Hello");

}

2 / 5

When C language was launched?

3 / 5

#include <stdio.h>

int main()

{

int y = 2;

int z = y +(y = 10);

printf("%d\n", z);

}

4 / 5

#include <stdio.h>
    int main()
    {
        int x = 2, y = 0, l;
        int z;
        z = y = 1, l = x && y;
        printf("%d\n", l);
        return 0;
    }

5 / 5

  #include <stdio.h>
    int main()
    {
        int x = 2, y = 0;
        int z = (y++) ? 2 : y == 1 && x;
        printf("%d\n", z);
        return 0;
    }

Your score is

The average score is 20%

0%

1 thought on “C MCQ on Logical Operators

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Bitnami banner
Bitnami