What will be the output of the program?#include int get(); int main() { const int x = get(); printf('%d', x); return 0; } int get() { return 20; } - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
06 Mar 2023 03:04 PM study24x7 study24x7

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

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles