¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita- 12
Fill in the blanks to declare a pointer to the ''st'', where ''st'' is of type ''Student'', then call printAge() via the pointer
12 Respuestas
+ 7
Student * st = new Student();
st->printAge();
+ 6
Student st;
Student *stPtr =&st;
stPtr->printAge();
+ 2
Fill in the blanks to declare an array of void pointers to x1, x2 and x3 and print them using the pointers.
Ans??
0
where I have to fill? :p
check comment section of that page, you will get your answer.
0
Fill in the blanks to declare two variables a and b; and two pointers pa and pb that point to a and b, respectively. Print to the screen the value of the division of a and b variables accessed via pointers pa and pb.
0
darg and drop from the options below to define the printinfo() function, which prints "people's" name and birthdate, using date of birth print date() function.
Void people::_(){
Cout<<name<<endl;
_._();
}
ANSWER: -
printlnfo
dateofBirth
printdata
0
thanks thanks thanks all so much
0
Student st;
Student
*
stPtr =
&
st;
stPtr
->
printAge();
- 1
Student st;
st-> printAge ();
this is what you are looking for, I guess.
- 1
Student st;
Student *stPtr = &st;
stPtr->printAge();
- 1
Answer
*
&
->
- 1
fill in the blanks to declare a pointer to the "st", where "st" is of type " student ", then call printage () via the pointer.
Student st;
Student _stptr=_st;
Stptr_printAge();
*
&
->