jadecharles7292 jadecharles7292
  • 17-12-2020
  • Computers and Technology
contestada

What line of code makes the character pointer studentPointer point to the character variable userStudent?char userStudent = 'S';char* studentPointer;

Respuesta :

IfeanyiEze8899 IfeanyiEze8899
  • 18-12-2020

Answer:

char* studentPointer = &userStudent;

Explanation:

Pointers in C are variables used to point to the location of another variable. To declare pointer, the data type must be specified (same as the variable it is pointing to), followed by an asterisk and then the name of the pointer. The reference of the target variable is also assigned to the pointer to allow direct changes from the pointer variable.

Answer Link

Otras preguntas

Consider a spherical capacitor which consists of two concentric spherical shells of radii a=42 m and b=65 m, as shown in Figure . The inner shell has a charge +
which five lakes are in minnesota the land of 10000 lakes
Find the arithmetic mean of the following numbers -5, 12, 24, 46, 60
Sorry can’t type this out help asap please ? Look at pictures
Which two parts of this passage contain a biblical allusion? So lived the clansmen in cheer and revel a winsome life, till one began to fashion evils, that fiel
make a scenario on how you will administer the instrument or questionnaire to your respondents​
I am not fine and neither is my brother)into affirmative​
I WILL GIVE BRAINLY FIND METAPHORE
A student carried out an experiment adding different weights to a spring and recording the results. Look at the table of results. What force do you think would
What is the slope-intercept equation of the line below?