Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 10;
6.
if (a < 10) {
7.
for (i = 0; i < 10; i++)
8.
cout
Options:
A .  0123456789
B .  123456789
C .  0
D .  error
Answer: Option D

We will get compilation error because â€˜i’ is an undeclared identifier.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers