A

Admin • 802.91K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.