Q2) (11 pts) What is the output of the below statements?. Include your answers in the boxes given below. int b[4] (8, 3,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Q2) (11 pts) What is the output of the below statements?. Include your answers in the boxes given below. int b[4] (8, 3,

Post by answerhappygod »

Q2 11 Pts What Is The Output Of The Below Statements Include Your Answers In The Boxes Given Below Int B 4 8 3 1
Q2 11 Pts What Is The Output Of The Below Statements Include Your Answers In The Boxes Given Below Int B 4 8 3 1 (30.94 KiB) Viewed 8 times
Q2) (11 pts) What is the output of the below statements?. Include your answers in the boxes given below. int b[4] (8, 3, 5, 2); int w = 3; int z = 7; int "p1, *p2; w = (b + 2); z = (b + 3); pl = &w; p2 = b; cout << " w= " << w << " z= " << z << " "p1" << "p1 << " "p2 = " << *p2 << "\n"; *p1 = *p1 + 2; p2 = p2+2; cout << "w= " << W << 2 << char song[15] = "By"; strncpy(song, "TIE", 2); cout << song << " M *p1 = << *p1 << " *p2 = " << *p2; Q3) (4 pts) What is the output of the following statements? Include: your answer in the Answer Section below. << strlen(song) << "\n"; char dice([8] "LOL"; strcat(dice, "L"); cout << dice << " << strien (dice) << "\n";
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply