subject

What does the following statement do? vector v(10, 2);
a) it creates a vector object and initializes all the first two elements with the values 10 and 2.
b) it creates a vector object with a starting size of 2 and the first element initialized with the value 10.
c) it creates a vector object with a starting size of 10 and the first element initialized with the value 2.
d) it creates a vector object with a starting size of 10 and all elements are initialized with the value 2.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:40
Write a function 'music_func' that takes 3 parameters -- music type, music group, vocalist -- and prints them all out as shown in the example below. in case no input is provided by the user, the function should assume these values for the parameters: "classic rock", "the beatles", "freddie mercury". for example: input: alternative rock,pearl jam,chris cornell output: the best kind of music is alternative rock the best music group is pearl jam the best lead vocalist is chris cornell note: the print statements will go inside the for example: print("the best kind of music is"
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Hacer un algoritmo que me permita ingresar el nombre de una parcela de terreno y muestre junto al mensaje “tipo de suelos: suelos fumíferos, ¡excelente!
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
According to your study unit, what is the main reason that improved human relations skills may improve your grades?
Answers: 1
You know the right answer?
What does the following statement do? vector v(10, 2);
a) it creates a vector object and in...
Questions
question
Mathematics, 10.02.2021 16:30
question
Mathematics, 10.02.2021 16:30
question
Chemistry, 10.02.2021 16:30
Questions on the website: 13722367