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 / anil hooda

it will return any integer value.....

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using pointers in a program?

933


What is an overflow error?

877


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

1998


Write about the retrieval of n number of objects during the process of delete[]p?

820


What are associate containers?

837


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

1896


what are function pointers?

787


How can you create a virtual copy constructor?

840


Why c++ is not a pure oop language?

775


Explain the isa and hasa class relationships.

815


What are disadvantages of pointers?

851


What is diamond problem in c++?

789


What is the use of :: operator in c++?

845


What is the auto keyword good for in c++?

892


Define anonymous class.

837