Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 1 (Multiple Choice, 4 pts each) cor the problems below, choose the REST

ID: 3753401 • Letter: P

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 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

Explanation / Answer

Please find the answers as the following:

1) (a) float* my_var_p;
2) (e) both (b) and (c)
3) (d) size of dDigit: 8
       size of p_dDigit: 8

Hope this helps! PLEASE THUMBS UP!!!!!!!!!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote