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

Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

0 Answers  


Mention the ways in which parameterized can be invoked.

0 Answers  


What is the difference between map and hashmap in c++?

0 Answers  


What are the vectors in c++?

0 Answers  


How can you create a virtual copy constructor?

0 Answers  


write a C++ programming using for loop: * * * * * * * * * *

4 Answers   TCS,


What are features of c++?

0 Answers  


What are stacks? Give an example where they are useful.

0 Answers  


Are strings immutable in c++?

0 Answers  


Define basic type of variable used for a different condition in C++?

0 Answers  


Define a nested class.

0 Answers  


Can class objects be passed as function arguments?

0 Answers   HCL,


Categories