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 dev c++ free?
Differentiate between a constructor and a method in C++.
How does atoi function work?
Why is it called c++?
What are destructors?
Define what is constructor?
What is the benefit of encapsulation?
When should I use unitbuf flag?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
How one would use switch in a program?
What is operators in c++?
Explain the concept of copy constructor?
Specify different types of decision control statements?
What methods can be overridden in java?
Are c and c++ different?