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


Please Help Members By Posting Answers For Below Questions

When one must use recursion function? Mention what happens when recursion functions are declared inline?

649


Const char *p , char const *p What is the difference between the above two?

663


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?

622


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

678


What is the difference between public, private, and protected access?

616






Describe the setting up of my member functions to avoid overriding by the derived class?

611


Keyword mean in declaration?

595


What is the two main roles of operating system?

512


Is arr and &arr are same expression for an array?

584


Explain container class.

687


What is the difference between a "copy constructor" and an "assignment operator" in C++?

622


If there are two catch statements, one for base and one for derived, which should come first?

577


What is the difference between a template and a macro?

584


What are the main features of c++?

544


What is a try block?

640