Question: Problem 1 (Multiple Choice, 4 pts each) cor the problems below, choose the REST answer from the list of choices. CIRCLE the letter for your
Problem 1 (Multiple Choice, 4 pts each) cor the problems below, choose the REST answer from the list of choices. CIRCLE the letter for your answer. 1. The proper way to declare a variable my var p of type pointer to float is: loat my var b tloat my var pI o loat smy var p d. int my var pi 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 ptr-ssss choose answer below >>> a. 12 C "Welcome ca305" d. both (a) and (b) e both (b) and (c) t. 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 dDigit3.14 double p dDigit -&dDigit printf("size of dDigit: d In", sizeof (dDigit)) printf ("size of p dDigit: d In", sizeof (p_dDigit)) a. size of dDigit: 4 b. size of dDigit: 4 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
