Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Find the value of combination. 30C4

Answered: 1 week ago

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago