adplus-dvertising
frame-decoration

Question

What will be the output of the program?
#include<stdio.h>
int get();

int main()
{
    const int x = get();
    printf("%d", x);
    return 0;
}
int get()
{
    return 20;
}

a.

Garbage value

b.

Error

c.

20

d.

0

Answer: (c).20

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?