Vidyalelo
C++ Programming · Q372

C++ miscellaneous

Programming · C++ Programming · question 372

Q372

What will be the output of the following C++ code? #include #include #include using namespace std; int main () int myints[] = 10, 20, 30 ,40 ; int * p; p = find (myints, myints + 4, 30); --p; cout << *p << ' '; return 0;

A.
10
B.
20
Answer
C.
30
D.
40

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board