int main()
{
int i ,a[i];
i = 0;
a[i] = 10;
cout<< a[i] << endl;
return 0;


}

What will be output of this program?

Answers were Sorted based on User's Feedback



int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } ..

Answer / ram

main method cannot return any value.

Is This Answer Correct ?    6 Yes 28 No

Post New Answer

More C++ General Interview Questions

What does obj stand for?

0 Answers  


Is it possible to get the source code back from binary file?

1 Answers  


Does c++ have finally?

0 Answers  


How would you use the functions randomize() and random()?

0 Answers  


What is c strings syntax?

0 Answers  


What is a binary file? List the merits and demerits of the binary file usagein C++.

0 Answers  


What is the keyword auto for?

0 Answers  


Can a Structure contain a Pointer to itself?

0 Answers  


Define a constructor?

0 Answers  


What do you mean by translation unit?

0 Answers  


What is time_t c++?

0 Answers  


What do you mean by C++ access specifiers ?

1 Answers  


Categories