Q. What will happen if the following C code is executed?

Code:
#include <stdio.h>
    int main()
    {
        int main = 3;
        printf("%d", main);
        return 0;
    }
  • (A) It will cause a compile-time error
  • (B) It will cause a run-time error
  • (C) It will run without any error and prints 3
  • (D) It will experience infinite looping
πŸ’¬ Discuss
βœ… Correct Answer: (C) It will run without any error and prints 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
211
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Geetam
Publisher
πŸ“ˆ
95%
Success Rate