0

What is pointer & how it uses in c program ?

4th Feb 2017, 4:17 AM
Madhav Ashokbhai Dihora
Madhav Ashokbhai Dihora - avatar
2 Respuestas
+ 1
A pointer is a variable which stores the address of another variable.We can have pointer to any data type or in fact we can have pointers to functions as well. The address of the variable can be accesses by the & operator. int a = 10; printf("address of a : %p\n", &a); You can store this address in a pointer like int *p = &a; printf("address of a : %p\n", p);
4th Feb 2017, 4:25 AM
Rajat Paliwal
Rajat Paliwal - avatar
0
thank you sir @Rajat Paluwal
4th Feb 2017, 4:26 AM
Madhav Ashokbhai Dihora
Madhav Ashokbhai Dihora - avatar