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

Verify the identity. 4 csc 2x = 2 csc2x tan x
how are cells, tissues, and organs related?
Define conspiracy theory
Question:1. What is the value of x? Show your work to justify your answer. (2 points)2. What is the value of the exterior angle? Show your work to justify yo
But the influence of children goes further than its first trifling effort of remaking heaven and earth. It forces us actually to remodel our conduct in accordan
A farm lets you pick 3 pints of raspberries for $12.00 how many pints do you get per dollar
Both the football and volleyball teams have games today. The football team plays every 7 days. The volleyball team plays every 3 days. When will both teams have
Evaluate each expression. 1) 5 - ( 4 - 2 - ( 6 - 6 ) ) A) 8 B) 5 C) 2 D) 3 2) 1/2 - 4 ( 1/2 + 1 ) 2 A) - 9 B) 9/4 C) 17/2 D) - 17/2
What expression is equivalent to ( 2x4 y ) 3?
Please help!!!! 30 points