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
What are the advantages of using pointers in a program?
What is an overflow error?
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.
Write about the retrieval of n number of objects during the process of delete[]p?
What are associate containers?
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. --- │ │ │ │ │ │ ---
what are function pointers?
How can you create a virtual copy constructor?
Why c++ is not a pure oop language?
Explain the isa and hasa class relationships.
What are disadvantages of pointers?
What is diamond problem in c++?
What is the use of :: operator in c++?
What is the auto keyword good for in c++?
Define anonymous class.