how to assign the address of a variable to other variable in pointer.
Answers
Answered by
2
to aise safar memory address of variable the operator & is used which is called as the address of operator we can I find the address of variable way to another variable using & operator
ptr = &a
this statement will assign the address of a variable PTR .Thus PTR variable is a pointer to variable a .
Answered by
2
// General syntax
datatype *var_name;
// An example pointer "ptr" that holds
// address of an integer variable or holds
// address of a memory whose value(s) can
// be accessed as integer values through "ptr"
int *ptr;
[pagal admin ek hi question ko koi itna baar post karta hai kya?? point transferring going on huh!! sayad aministrators k pass inform karna parega.
#A.D. Saviour's Assistant Y.V. ]
Similar questions
Physics,
6 months ago
Hindi,
6 months ago
Chemistry,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago