- 4
type in a code to declare a pointer 'ptr ' to int and assign it value to var's address
int var =25 int ___ ptr = ___ var;
5 Respostas
+ 5
*
&
+ 3
Did you mean "assign var's address to a pointer"?
Then int *ptr = &var; is the solution.
You can declare a pointer using asterisk (*).
& gives the variable's address.
+ 2
Please explain what you do not understand, show your attempts, instead of asking for answers straight off the bat.
0
int var = 25;
int *ptr = &var;
0
in the first slash * and in the second one u addressing the variable to the pointer so amperson &
final answers were= * , &