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 / mohammed afroz
There are compile time error in this program. Because array
can declare with a constant value.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Why null pointer is used?
Define copy constructor.
What is exception handling? Does c++ support exception handling?
Tell me can a pure virtual function have an implementation?
What is the syntax for a for loop?
Where Malloc(), Calloc(), and realloc() does get memory?
What is general form of pure virtual function? Explain?
What is the difference between an array and a list?
What are inline functions? What is the syntax for defining an inline function?
What is object in c++ wikipedia?
Why is c++ difficult?
Why do we use setw in c++?
What is the use of structure in c++?
What things would you remember while making an interface?
Write a struct time where integer m, h, s are its members?