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 virtual function? Explain with an example
What do you mean by translation unit in c++?
How can we access protected and private members of a class?
Why is c++ is better than c?
What is c++ manipulator?
How can we read/write Structures from/to data files?
Why do we use constructor?
Is c# written in c++?
Tell me difference between constant pointer and pointer to a constant.
Why null pointer is used?
What is a class definition?
Explain explicit container.
Write about a nested class and mention its use?
Explain queue. How it can be implemented?
What is the advantage of c++ over c?