raeganwalker5718 raeganwalker5718
  • 14-09-2019
  • Computers and Technology
contestada

For a class Foo, one difference between a variable declared Foo * and a variable declared Foo & is that only the variable declared Foo & can potentially have the value NULL.

Select one:

a. FALSE

b. TRUE

Respuesta :

ExieFansler ExieFansler
  • 20-09-2019

Answer:

False.

Explanation:

When we declare a variable as reference type we have to initialize that variable otherwise the compiler will give error that the reference variable is not initialized.You also cannot initialize the variable Foo& with NULL value because it is a reference variable and we have to initialize it.

On the other there is no need to initialize the variable Foo * since it is a pointer it can also store NULL value.

So the answer is only Foo* can store NULL value not Foo &.

Answer Link

Otras preguntas

Which of the following organisms can perform alcoholic fermentation? (1) yeast, (2) humans, (3) bacteria. a. 1 and 2 b. 1 and 3 c. 1 only d. 1, 2, and 3
How many atoms are in 0.750 moles of zinc?
Determine whether the sequence coverage or diverges. If it converges, give the limit. 48, 8, 4/3, 2/9, ...
Does every point lie in a quadrant?
A farmer hauled in 120 bales of hay. Each of his cows ate 1 1/4 bales. How many cows the farmer feed?
By the mid-1700s, the largest city in the colonies was (A) New York (B) Boston (C) Philadelphia (D) Charleston (E) Wilmington, Delaware
you measure or observe two events to occur at the same time one nearby and one further away. Which one did you actually see first?
which seismic wave moves through earth at the fastest speed?
What are the 3 features of a typical seigneurie
What is biogeography and what does it provide?