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

While catching fireflies, you and a friend decide to have a competition. after mm minutes, you have (3m+13)(3m+13) fireflies and your friend has (4m+6)(4m+6) fi
could someone answer this and explain to me how to find the slope
What is the area of 30 X 40 rectangle in square units
how do you say 2008 in spanish
Suppose you round 43,257,529 to 43,300,000. To what place value did you round the number?
Which type of worker supported the Anti-Federalists? A) farmers B) merchants C) bankers D) manufacturers
identify three senses that can alert you to an emergency
what are the parts of the finger close to the nail called
many of the delegates chosen to the constitutional convention were land owners, bankers, merchants and _____?
find the inverse of the function y=x^2-12