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 / ram
main method cannot return any value.
| Is This Answer Correct ? | 6 Yes | 28 No |
Post New Answer View All Answers
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What do you understand by pure virtual function? Write about its use?
What is a constructor in c++ with example?
Distinguish between a # include and #define.
How do you invoke a base member function from a derived class in which you have not overridden that function?
What are punctuators in c++?
Can a built-in function be recursive?
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.
What is c++ library?
What is void pointer in c++ with example?
Are c and c++ similar?
Explain Text Manipulation Routines?
Can you declare an array without a size in c++?
How can I learn dev c++ programming?
Is ca high or low level language?