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

how much fruit should i eat a day
True or false: the rda is designed to be averaged over several days.
Pls help I don’t get it
if the formula p=kt, find t when k=36 p=144
John watson is to wilhelm wundt as ________ is to ________.
The admission fee to an amusement park is $28. It costs an additional p dollars to rent a locker to hold your belongings. The total cost for 5 people to enter t
Why is triangle angles add up to 180 when everything else is 360?
Does anyone know how to solve this?
On Sunday, a local hamburger shop sold a combined total of 267 hamburgers and cheeseburgers. The number of cheeseburgers sold was two times the number of hambur
Which is a possible consequence for violating a zero tolerance school policy