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
What is the use of register keyword with the variables?
What are the 2 main types of data structures?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is the difference between an array and a list?
When does a name clash occur in c++?
Is c or c++ more useful?
Why do we need constructors in c++?
Is facebook written in c++?
Is java made in c++?
What is a container class? What are the types of container classes in c++?
What is abstract class in c++?
Should the this pointer can be used in the constructor?
Define a nested class. Explain how it can be useful.
What is c++ code?
Can you use the function fprintf() to display the output on the screen?