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 aspect of the metamorphosis would people of kafkas time period have considered normal and ordinary ?
Which of these sentences correctly uses coordinate adjectives? My brother loves to ride his bike on slippery, mountain roads. My brother loves to ride his bike
Which of the following is the solution to the inequality below ? -3/2(x-1/3)>1/5-5x
How do I do this please help
In Buffalo New York the temperature was -14 Fahrenheit in the morning. if the temperature dropped seven Fahrenheit what is the temperature now?
can 2 different numbers have the same absolute value
P and q are on a number line. If p has a coordinate -5 and pq =7 , what could the coordinate of p be
He __________, wrapped around the thalamus, plays a vital role in learning and memory.
The coordinates 40 degrees north and 100 degrees east falls in what country?
I need help !!!!!!!!!!