1.

What is the output of this program?
#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
E. None of these
Answer» B. Runtime Error


Discussion

No Comment Found

Related MCQs