1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
yuradex [85]
4 years ago
8

For a class Foo, one difference between a variable declared Foo * and a variable declared Foo & is that only the variable de

clared Foo & can potentially have the value NULL.
Select one:

a. FALSE

b. TRUE
Computers and Technology
1 answer:
Studentka2010 [4]4 years ago
5 0

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

You might be interested in
Write a function sum them() that sums a set of integers, each of which is the square or cube of a provided integer. Specifically
dusya [7]

Answer:

# sum_them function is defined

def sum_them():

   # A sample of a given list is used

   given_list = [1, 2, 3, 4, 5, 6, 6, 9, 10]

   # The total sum of the element is initialized to 0

   total = 0

   # for-loop to goes through the list

   for element in given_list:

       # if the index of element is even

       # element to power 2 is added to total

       if(given_list.index(element) % 2 == 0):

           total += (element ** 2)

       else:

       # else if index of element is odd

       # element to power 3 is added to total

           total += (element ** 3)

   # The total sum of the element is displayed

   print("The total is: ", total)        

           

# The function is called to display the sum

sum_them()            

Explanation:

The function is written in Python and it is well commented.

Image of sample list used is attached.

3 0
3 years ago
Why did Liam do the following?
NeX [460]

Answer: 2)

Explanation: In order to control who have access to you desktop, the best thing to do is add password to user account.

4 0
3 years ago
Read 2 more answers
Can someone make a kahoot so i can join im bored!<br> *THANKS&gt;3
Arlecino [84]
I would love to join someone’s Kahoot I do not really feel like making one tho
6 0
3 years ago
this is a question about this app. Is the plus a scam or something. please tell me the truth. cause ive paid for it and it worke
mylen [45]
I didn’t get the plus and it let me review answers without an ad so idk so like you really don’t need plus I wouldn’t get it
7 0
3 years ago
Read 2 more answers
Get these points!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
VladimirAG [237]
It would be b
hope this helps


5 0
4 years ago
Other questions:
  • Which of the following statements are true with regards to satellite internet access
    15·2 answers
  • Which modem settings should be configured on DSL or cable modems?
    14·1 answer
  • Suppose you find a magic $1.00 coin. Its magic power is as follows: as each day passes, you get an additional dollar plus half o
    6·1 answer
  • How can you check an orthographic drawing to be sure there are no missing lines
    11·1 answer
  • Describe artificial intelligence, and contrast the human mind and the computer as information processors
    5·1 answer
  • The _____ handles the instructions for your computer to start up before the operating system is loaded.
    11·1 answer
  • For the PSoC chip what is the minimum voltage level in volts that can be considered to logic one?​
    15·1 answer
  • Write a calculator program that will allow only addition, subtraction, multiplication &amp; division. Have the
    7·1 answer
  • The processes of only seeing only some records frome data table is called as what​
    5·1 answer
  • What year does futurist ray kurzweil believe ai will meet human intelligence?.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!