int main()
{
int i ,a[i];
i = 0;
a[i] = 10;
cout<< a[i] << endl;
return 0;
}
What will be output of this program?
Answer Posted / sachinmundhra
This will not get compile.
int i , a[i] ; // This statement will given error. Constant
expression required.
| Is This Answer Correct ? | 38 Yes | 3 No |
Post New Answer View All Answers
What is pointer -to-members in C++? Give their syntax?
What do you mean by “this” pointer?
Can we use struct in c++?
Explain differences between alloc() and free()?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
Where can I run c++ program?
Is map ordered c++?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
Write about the role of c++ in the tradeoff of safety vs. Usability?
Can a program run without main in c++?
What is microsoft c++ redistributable 2013?
Explain the scope of resolution operator.
Explain Memory Allocation in C/C++ ?
Do class method definitions?
Explain the pure virtual functions?