What is the output of the following code?int *p;int x;x = 76;p = &x;*p = 43;cout << x << ", " << *p << endl;

A. 76, 76
B. 76, 43
C. 43, 76
D. 43, 43


Answer: D

Computer Science & Information Technology

You might also like to view...

Case-Based Critical Thinking QuestionsCase 1You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode.The following pseudocode is not working properly. The message should display five times. What needs to be changed?   Declarations     string message = "OK"   while count < 5      output message      count = count + 1   endwhile

A. while count < 5 should be changed to while count = 5 B. num count = 1 should be added to the Declarations C. num count should be added to the Declarations D. num count = 0 should be added to the Declarations

Computer Science & Information Technology

_____ means translating business processes and functions into applications.

A. Forward engineering B. Limited perplexing C. Reverse engineering D. Boundless perplexing

Computer Science & Information Technology

If you add a table with 10 records to a query and add an unrelated table with 4 records to the same query, how many records will display when you run the query?

A. 40 B. 10 C. 4 D. 0 (since the tables are not related)

Computer Science & Information Technology

In regards to default arguments, which of the following is false?

a. When an argument is omitted in a function call, the default value of that argument is automatically inserted by the compiler and passed in the function call. b. They must be the rightmost (trailing) arguments in a function’s parameter list. c. Default values can be constants. d. Default values cannot be global variables or function calls.

Computer Science & Information Technology