πŸ“Š C Programming
Q. What is the output of this program?
Code:
#include <stdio.h>
  int var = 20;
  int main()
  {
    int var = var;
    printf("%d ", var);
    return 0;
  }
  • (A) 20
  • (B) Garbage Value
  • (C) Compiler Error
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) Garbage Value

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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