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
How the programmer of a class should decide whether to declare member function or a friend function?
What is the full form of dos?
What do nonglobal variables default to a) auto b) register c) static
What do you mean by translation unit in c++?
What is std :: flush?
What does catch(…) mean?
What is c++ virtual inheritance?
What is #include sstream?
What is an iterator?
How many types of scopes are there in c++?
What is cout flush?
Differentiate between the manipulator and setf( ) function?
What are the two types of comments?
If I is an integer variable, which is faster ++i or i++?
What is encapsulation in C++? Give an example.