Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++: Given the code segment below, which of the following statements are syntact

ID: 3936825 • Letter: C

Question

C++: Given the code segment below, which of the following statements are syntactically correct? Select all that are correct. Please support the answer with an explanation.

Given the code segment below, which of the following statements are syntactically correct? Select all that are correct. struct coaster float speed; float height; coaster* next; coaster" La Vibora = new coaster; LaVibora-next = new coaster; Answers: La Answers: La_vi Vibora-next-speed 50; = *La_Vibora.*next.height15.5; (* (La_Vibora->next)) . speed50; *(*La Vibora) .next.height -15.5; * (*La_Vibora) .next.height -15.5;

Explanation / Answer

answer:-

These statements are syntactically correct:

La_Vibora->next->speed =50;
    

(*(La_Vibora->next)).speed = 50;
  

These statements syntactically wrong:

*La_Vibora.*next.height =15.5;

*(*La_Vibora).next.height=15.5;