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
Is c++ low level?
Can we use struct in c++?
Are strings mutable in c++?
Why ctype h is used in c++?
How to give an alternate name to a namespace?
Explain function overloading
How do you compile the source code with your compiler?
What is the function to call to turn an ascii string into a long?
What is the purpose of template?
What are the advantages of using pointers in a program?
What do you mean by early binding?
How come you find out if a linked-list is a cycle or not?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
Which of the following is evaluated first: a) && b) || c) !
What will happen if a pointer is deleted twice?