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 / ramez
Constant expression will be required here...
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
When one must use recursion function? Mention what happens when recursion functions are declared inline?
Const char *p , char const *p What is the difference between the above two?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What is the difference between public, private, and protected access?
Describe the setting up of my member functions to avoid overriding by the derived class?
Keyword mean in declaration?
What is the two main roles of operating system?
Is arr and &arr are same expression for an array?
Explain container class.
What is the difference between a "copy constructor" and an "assignment operator" in C++?
If there are two catch statements, one for base and one for derived, which should come first?
What is the difference between a template and a macro?
What are the main features of c++?
What is a try block?