Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions

Question

Recognize the power of service guarantees.

Answered: 1 week ago