What is the Difference between "vector" and "array"?
Answer Posted / sanish joseph
A growable array is calld vector while array is of fixed size,
Is This Answer Correct ? | 41 Yes | 12 No |
Post New Answer View All Answers
Can we define a constructor as virtual in c++?
Which field is used in c++?
What would happen on forgetting [], while deallocating an array through new?
Explain the pure virtual functions?
Write bites in Turbo c++ Header ("Include") Files.
What is the difference between an array and a list?
What is #include iostream h in c++?
What is the return value of the insertion operator?
Specify different types of decision control statements?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What is the use of setprecision in c++?
What are advantages of using friend classes?
What is general format for a prototype?
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.
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.