How do you define a pointer to object in c++?
Answers
Answered by
2
class_name * pointer_name , object_name ;
pointer_name = &object_name;
pls mark it as brainliest.
pointer_name = &object_name;
pls mark it as brainliest.
Answered by
0
hey there!!
◆ pointer are memory allocation variables ..
=) we define a pointer by giving astrick before the variable name with its data type..
for example :--
..............
............
{
int *p ;
*p = &a
............
...........
here ( *p indicates the pointer to the variable p )
general form :-
data type_* variable name ;
hope u got my words how to declare or define pointers..
___________. ______________
◆ pointer are memory allocation variables ..
=) we define a pointer by giving astrick before the variable name with its data type..
for example :--
..............
............
{
int *p ;
*p = &a
............
...........
here ( *p indicates the pointer to the variable p )
general form :-
data type_* variable name ;
hope u got my words how to declare or define pointers..
___________. ______________
Similar questions