Question: Problem 1 (Multiple Choice, 4 pts each) Fo r the problems below, choose the BEST answer from the list of CICLE the letter for your
Problem 1 (Multiple Choice, 4 pts each) Fo r the problems below, choose the BEST answer from the list of CICLE the letter for your answer 1. The proper way to declare a variable my var p of type pointer to float is: a float my var p b. rLoat my var pi o float &my var p 2. Suppose the following code to declare a variable called ptr appears in the program. What could be assigned to ptr and the code would compile without errors? char a a. 12 b &S Welcome cs305" d. both (a) and (b) e. both (b) and (c) f none of the above 3. Suppose the following code is compiled and executed. All appropriate headers are included and the code is written in the main function. What is printed? double dDigit 3.14 double p dDigit - &dDigit: printf("size of dDigit: %d ", sizeof (dDigit)); printf("size of p-dDigit: %d " , sizeof (p-dDigit)); a. size of dDigit: 4 b. size of dDigit: c. size of dDigit: 8 d. size of dDigit: 8 size of p dDigit: 4 size of p dDigit: 8 size of p_dDigit:4 size of p_dDigit: 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
