Q. What is the output of C Program?

Code:
int main() { int a[]; a[4] = {1,2,3,4}; printf("%d", a[0]); }
  • (A) 1
  • (B) 2
  • (C) 4
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compiler error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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