Question
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
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
Answer: Option D
Was this answer helpful ?
We will get compilation error because ‘i’ is an undeclared identifier.
Was this answer helpful ?
Submit Solution