subject

The following 4 lines of c++ code, use strings.
string firstname; // define a string object
char lastname[7]; // define a c-string
firstname = "abraham"; // assign a value to the string object
lastname = "lincoln"; // assign a value to the c-string. which of the following statements is /are true?
a) the string object is defined incorrectly because no size is given for it.
b) the 2 strings definitions are correct, but the 2 assignment statements are wrong.
c) the string object is assigned a value correctly, but the c-string is not.
d) the c-string is assigned a value correctly, but the string object is not.
e) all 4 lines of codes are correct.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec.modifying search results based on a ranking of a web page
Answers: 2
You know the right answer?
The following 4 lines of c++ code, use strings.
string firstname; // define a string object <...
Questions
question
Mathematics, 27.01.2020 00:31
question
Social Studies, 27.01.2020 00:31
Questions on the website: 13722367