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 #include is used?
Where is atoi defined?
What is the full form of india?
What information can an exception contain?
Explain how the virtual base class is different from the conventional base classes of the opps.
Is swift faster than c++?
How to declare a function pointer?
What are the four main data types?
What do you know about near, far and huge pointer?
Differentiate between a constructor and a method in C++.
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is difference between class and function?
Which function should be used to free the memory allocated by calloc()?
What is == in programming?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator