Sail E0 Webinar
Question

 Pick out the correct statement about vector.
a) vector<int> values (5)
b) vector values (5)
c) vector<int> (5)
d) None of the mentioned


Options:
A .  Type
B .  Name
C .  Vector
D .  Number_of_elements
Answer: Option D

Answer:a
Explanation:The syntax for declaring the vector element is vector<type> variable_name (number

_of_elements);




Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers