C++ Institute CPA - C++ Certified Associate Programmer CPA-21-02 Question # 46 Topic 5 Discussion

C++ Institute CPA - C++ Certified Associate Programmer CPA-21-02 Question # 46 Topic 5 Discussion

CPA-21-02 Exam Topic 5 Question 46 Discussion:
Question #: 46
Topic #: 5

What is the output of the program?

#include

using namespace std;

int main()

{

int tab[4]={10,20,30,40};

tab[1]=10;

int *p;

p=&tab[0];

cout<<*p;

return 0;

}


A.

It prints: 10


B.

It prints: 20


C.

It prints: 11


D.

It prints: 30


Get Premium CPA-21-02 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.