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

When should you use multiple inheritance?

2 Answers  


What are the implicit member functions of class?

0 Answers  


Are php strings immutable?

0 Answers  


What is a vector c++?

0 Answers  


What is a terminating character in c++?

0 Answers  






Is there any difference between dlearations int* x and int *x? If so tell me the difference?

16 Answers   Lason,


What is an overflow error?

0 Answers  


Which programming language is best?

0 Answers  


CAN U SAY WHICH PROGRAMING LANGUAGE IS USED BY DOCTORS....?

1 Answers  


Name the implicit member functions of a class.

0 Answers  


sir there is some problem with nokia5130c-2,when we are trying to upload movies from net then there is a error occurred"FORMAT NOT SUPPORTED" bt its all ready in 3gp format.please tell me what i do now?

2 Answers   Nokia,


Difference between an inspector and a mutator

0 Answers  


Categories