Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int p = 10, q = 20, r;
    if (r = p = 5 || q > 20)
        printf("%d", r);
    else
        printf("No Output\n");
}

A. 1

B. 10

C. 20

D. No Output

Answer: Option A


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals