Question: C++ Given the following: int a[5] = {2,4, 6, 8, 10); int *p = &a[1]; What is the value of p[1]? Select one: a. 4
![C++ Given the following: int a[5] = {2,4, 6, 8, 10);](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f55002b9746_83466f55002550bf.jpg)
![int *p = &a[1]; What is the value of p[1]? Select one:](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f55003420cf_83466f55002e69c9.jpg)
C++
Given the following: int a[5] = {2,4, 6, 8, 10); int *p = &a[1]; What is the value of p[1]? Select one: a. 4 O b. 6 C. 8 O d. 10 Given the following: char [20]="ABCDEFG"; strncpy(s, "CS159", 5); What is the value of the string variable s? Select one: a. CS159FG b. CS159 O C. CS159F O d. CS159G
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
