πŸ“Š C++
Q. What is the output of this program?
Code:
#include 
    using namespace std;
    int main()
    {
        int p = 15;
        if (p < 13) {
            for (k = 0; k < 12; k++)
               cout << k;
        }
        else {
            cout << k;
        }
        return 0;
    }
  • (A) Compilation Error
  • (B) Runtime Error
  • (C) Garbage Value
  • (D) All of above
πŸ’¬ Discuss
βœ… Correct Answer: (A) Compilation Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
217
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rohan Raj
Publisher
πŸ“ˆ
90%
Success Rate