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
Write bites in Turbo c++ Header ("Include") Files.
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What is the difference between a declaration and a definition?
When should we use multiple inheritance?
What is the use of setfill in c++?
What is pure virtual function?
How can you say that a template is better than a base class?
Should the this pointer can be used in the constructor?
Why is c++ so fast?
Explain the use of this pointer?
When we use Abstract Class and when we use Interface?where we will implement in real time?
How do you compile the source code with your compiler?
Explain rethrowing exceptions with an example?
What is #include sstream?
What is a breakpoint?