Question: 5 (5 points)Given the following int x = 5; | 5| int* p; | 2500| 2 2 5 6 0 0 0 0 what prints

5 (5 points)Given the following int x = 5; | 5| int* p; | 2500| 2 2 5 6 0 0 0 0

what prints out when the following is executed? cout << x;

Question 5 options:

5

2500

2600

garbage

Question 6 (5 points)Given the following int x = 5; | 5| int* p; | 2500| 2 2 5 6 0 0 0 0

what prints out when the following is executed? cout << &x;

Question 6 options:

5

2500

2600

garbage

Question 7 (5 points)Given the following int x = 5; | 5| int* p; | 2500| 2 2 5 6 0 0 0 0

what prints out when the following is executed? cout << p;

Question 7 options:

5

2500

2600

garbage

Question 8 (5 points)Given the following

int x = 5; | 5| int* p; | 2500| 2 2 5 6 0 0 0 0

what prints out when the following is executed? cout << &p;

Question 8 options:

5

2500

2600

garbage

Question 9 (5 points)

Given the following int x = 5; | 5| int* p; | 2500| 2 2 5 6 0 0 0 0

what prints out when the following is executed? cout << *p;

Question 9 options:

5

2500

2600

garbage

P-Pointers2013

Question 10 (5 points)

code a pointer named ptr that points to an integer

Question 10 options:

Int* ptr;

int* ptr;

int ptr;

int ptr*;

Question 11 (5 points)

code a pointer named ptr that points to an character

Question 11 options:

char ptr;

Char* ptr;

char ptr;

char* ptr;

Question 12 (5 points)

assume you have defined an integer named x and an integer pointer named px

what statement would make the pointer px point to the variable x

Question 12 options:

px = x;

*px = x;

px = * x;

px = &x;

Question 13 (5 points)

assume you have defined an character named ch and an character pointer named pch

what statement would make the pointer pch point to the variable ch

Question 13 options:

ch = "pch";

pch = &ch;

pch = (char) ch;

ch = 'v';

Question 14 (5 points)

code the function header named func01, returns nothing, and has as parameters an int named x, a character named ch, an integer pointer named px and a float pointer named pf

Question 14 options:

void func01(x, ch, px, pf)

void func01(int x, char ch, int* px, float* pf)

void func01(in*t x, char* ch, int* px, float* pf)

void func01(int x, char ch, int px, float* pf)

please answer all

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!