Loki0fAsgard
Loki0fAsgard Loki0fAsgard
  • 17-07-2022
  • Computers and Technology
contestada

Which of the following shows how to correctly declare pointer variable x?
A. int x;
B. int &x;
C. ptr x;
D. int *x;

Respuesta :

danyaappa danyaappa
  • 18-07-2022

Answer:

declaration of pointer variables are done using *

Explanation:

* denotes the declared variable is a pointer which can hold address of another location. To get values of any address & is used. For example, we have an integer variable a to which holds a value 10. if you want to read the address of the variable a, use &a. To store this address in any other memory declare a pointer variable.

int a = 10;

int *loc_a;

loc_a = &a;

Answer Link

Otras preguntas

what states were carved out of the northwest territory
how do you say " no, thank you i want the other one" in french please help
Choose the correct verb to complete the sentence. Yo no __________ bien las ruinas
What king United upper and lower Egypt
rna and dna is all types of what macromolecule?
I have lungs but no legs. My offspring are found in membranous-shelled eggs and use lungs to breathe.
The mountain ranges on Southeast Asia’s mainland shaped the history of the region because the mountains. A. separated the mainland from the rest of Asia and is
3(2y-4) - 2 ) = 0.4 (1+y)
Select the objects that hold the same amount og liquid as a 96-fluid-ounce jug. mark all that apply
Sean has a collection of coins. One tenth of the coins are from Europe. Thirty-two hundredth are from Asia. The rest are from Africa. Write a decimal to show th