Question

Q.4.1. Given the following statements, place the address operator (&) appropriately into (1) ……, (2) ……,...

Q.4.1. Given the following statements, place the address operator (&) appropriately into (1) ……, (2) ……, and/or (3) …… so that we can get valid declarations.
float aFloat = 5.5;
float *pFloat = (1)……… aFloat;
float **ppFloat = (2)………pFloat;
void *pVoid = (3)……….pFloat;

a. (1), (2)
b. (1), (3)
c. (2), (3)
d. (1), (2), (3)
e. Others

Q.4.2. Given the following function calls, which ones are used correctly to read a character and an integer number from a formatted text file controlled by pFile into variables aChar and anInteger, respectively?
(i). fputc (&aChar, pFile);
(ii). aChar = fgetc (pFile);
(iii). fscanf (pFile, “%d”, &anInteger);
(iv). fread (anInteger, sizeof (int), 1, pFile);
a. (i), (ii), (iii), (iv)
b. (i), (iv)
c. (ii), (iv)
d. (ii), (iii)
e. Others

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(4.1)
float aFloat = 5.5;
float *pFloat = &aFloat;
float **ppFloat = &pFloat;
void *pVoid = &pFloat;
option (d) is correct.

(4.2)
(ii). aChar = fgetc (pFile);
(iii). fscanf (pFile, “%d”, &anInteger);
option (d) is correct.

Add a comment
Know the answer?
Add Answer to:
Q.4.1. Given the following statements, place the address operator (&) appropriately into (1) ……, (2) ……,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. (a) Consider the following matrices: A = [ 8 −6, 7 1] , B =...

    2. (a) Consider the following matrices: A = [ 8 −6, 7 1] , B = [ 3 −5, 4 −7] C = [ 3 2 −1 ,−3 3 2, 5 −4 −3 ] (i) Calculate A + B, (ii) Calculate AB (iii) Calculate the inverse of B, (iv) Calculate the determinant of C. (b) The points P, Q and R have co-ordinates (2, 2, 1), (4, 1, 2) and (5, −1, 4) respectively. (i) Show that P Q~ =...

  • 3. Consider a rigid rotor whose Hamiltonian is given by H L2(21) where L is the angular momentum operator and I is the...

    3. Consider a rigid rotor whose Hamiltonian is given by H L2(21) where L is the angular momentum operator and I is the moment of inertia of the rotator. Its rotation is described by a wave function: (0, N{Yo0(0,6)(1 3i) Y1-1(0,6) 2 Y21(0.0) Y20(0.) Find the normalization constant, N. (i) Find the probability to occupy state Yo0- (ii Find the expectation value of L2 of this state (iii Find the expectation value of L2 of this state (iv) Find (L2L2/21...

  • Part 1: For each of the following structures, indicate the integration expected for the signal associated...

    Part 1: For each of the following structures, indicate the integration expected for the signal associated with the indicated hydrogen(s). a) i) ii) iii) iv) b) i) ii) iii) c) i) ii) iii) d) i) ii) iii) iv) v) vi)   e) i) ii) iii)   iv) f) i) ii) iii) iv) v) vi) Part 2: For each of the following structures, indicate the coupling (a.k.a, splitting) pattern expected for the signal associated with the indicated hydrogen(s) by placing the appropriate letter(s)...

  • Which of the statements below is correct about the following circuit: When capacitors 1 and 2...

    Which of the statements below is correct about the following circuit: When capacitors 1 and 2 are connected in series, then connected in parallel with capacitors 3 and 4 (3 and 4 are connected in series), and the system is connected in parallel to an emf device, then l- each of the capacitors 1 and 2 carries the same amount of charge. Il- the voltage across each capacitor is the same and is equal to the emf's voltage. III- the...

  • Consider the following system at equilibrium. N2(g) + 3 H2 (g) 2 NH3(g) + 92.24 kJ...

    Consider the following system at equilibrium. N2(g) + 3 H2 (g) 2 NH3(g) + 92.24 kJ <--> Which response includes all of the following that will shift the equilibriu to the right, and no others? I. increasing the temperature III. increasing the pressure II. decreasing the temperature IV. decreasing the pressure VI. adding some NH3 V. removing some NH3 VII. removing some N2 VIII. adding some N2 a) I, IV, VI, and VII c) I, VI, and VII e) II,...

  • 1)predict the major product of the following reaction 2)predict the major product for the following reaction...

    1)predict the major product of the following reaction 2)predict the major product for the following reaction 3) predict the major product for the following reaction 1) Predict the major product for the following reaction HCI A) I B) II C) III D) IV E) V Answer:- 2) Predict the major product for the following reaction. A) I B) II C) III D) Both Ⅱ & IV E) Both I &I1I Answer:_ 3) Predict the major product for the following reaction....

  • 5. Select methods to prepare n-butylamine without complications? I. NH, - [NH,Br] 1. KOH 2. butylbromide...

    5. Select methods to prepare n-butylamine without complications? I. NH, - [NH,Br] 1. KOH 2. butylbromide 3.Hydrazine 1. NaN3 2. LAH 3.H20 BH(CN) 1.03 2. DMS A. I, III and IV B. II, III and IV C. I and IV D. II, IV and V E. III, IV and V 6. Select the two products expected from the reaction shown. HO A. I and VI B. III and V C. II and I D. IV and V E. Illand VI...

  • NUM 55) How many stereogenic centers are present in the following compound County Name: it Name: A) 1 B) 2 ourse: D...

    NUM 55) How many stereogenic centers are present in the following compound County Name: it Name: A) 1 B) 2 ourse: D) 4 Section: 56) Which of the following molecules are achiral? Exam D) I, II A) I, IV B) II, III C) III, IV 57) Which of the following molecules are chiral? I. cis-1,3-Dibromocyclohexane II. 1-Bromo-1-methylcyclohexane III. trans-1-Bromo-3-methylcyclohexane IV. cis-1-Bromo-3-methylcyclohexane A) II, III B) III, IV C) 1, IV D) 1, 58) Which of the following statements is true?...

  • Question 3 (2 points) For the reaction shown, select the expected major organic product. 1. 1...

    Question 3 (2 points) For the reaction shown, select the expected major organic product. 1. 1 eq HCI 2. 1 eq HBO Br -Br Br + enantiomer + enantiomer + enantiomer Br + enantiomer IV II a) 11 Ob) III O c) v Od) I Question 8 (2 points) What is the product of the reaction below? ТОН PCC O OH I II OH III IV a) 1 b) IV O c) III d) I Question 10 (2 points) Predict...

  • 10. Predict the product(s) of the following reaction. 1. BH, 2. HOZ/HO A) Only I and...

    10. Predict the product(s) of the following reaction. 1. BH, 2. HOZ/HO A) Only I and II B) Only I and III C) Only II and III D) Only III and IV 11. Predict the major product of the following reaction. H2O WHO t hon Hoch H2SO4 by DH A) I Β) II C) III D) IV 12. Predict the major product(s) of the following reaction. Oh [ OH OH OH OH A) Only I and II B) Only II...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT