adplus-dvertising
frame-decoration

Question

What will be the output of the program?
#include<stdio.h>

int main()
{
    int y=128;
    const int x=y;
    printf("%d\n", x);
    return 0;
}

a.

128

b.

Garbage value

c.

Error

d.

0

Answer: (a).128

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 the output of the program?