πŸ“Š C++
Q. What is the output of this program?
Code:
#include 
    using namespace std;
    int main()
    {
        void num0 = 15, num1 = 16;
        int num2;
        num2 = num0 + num1;
        cout << num2;
        return 0;
    }
  • (A) 31
  • (B) Runtime Error
  • (C) Compile time Error
  • (D) All of above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compile time Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
195
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Pradeep Sikarwar
Publisher
πŸ“ˆ
90%
Success Rate