πŸ“Š C Programming
Q. What will be output if you will compile and execute the following c code?
Code:
int extern x;
void main()
printf(“%d”,x);
x=2;
getch();
}
int x=23;
  • (A) 0
  • (B) 2
  • (C) 23
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 23

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
181
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
92%
Success Rate