adplus-dvertising
frame-decoration

Question

What will be output of the following c code?
#include<stdio.h>
int main()
{
    volatile int a=11;
    printf("%d",a);
    return 0;
}

a.

11

b.

Garbage

c.

-2

d.

Cannot Predict

Posted under Compiler Design

Answer: (d).Cannot Predict

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be output of the following c code?