What is the real meaning of "pointer in the c programming" | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 5

What is the real meaning of "pointer in the c programming"

which part of programming i can use it frequently?

1st Dec 2018, 7:29 PM
Sonu Kumar
Sonu Kumar - avatar
5 Respostas
+ 4
pointer is a variable that contains the address of another variable. consider the following code snippets: int a=5; int *ptr=&a;//ptr is a pointer printf("%p\n",ptr);//prints address printf("%p\n",&a);//prints address printf("%d\n",*ptr);//prints 5 & returns the memory address of it's operand. when * is applied to pointer, the pointer can access the value stored at particular memory location
1st Dec 2018, 11:54 PM
Rishi Anand
Rishi Anand - avatar
+ 4
Pointer is a variable which hold the address of another variable
30th Dec 2018, 7:25 AM
kapil mewada
kapil mewada - avatar
+ 2
Which point address of pointed value
1st Dec 2018, 8:14 PM
Unique Sharma
Unique Sharma - avatar
+ 2
Think of a shared folder on a computer. If multiple users need access to that one folder from there own accounts. Having that shared folder allows them all to make changes. Same thing with pointers, they link multiple variables to one in the location of memory so that each can change the value of the original variable. Hopefully that makes since.‚úĆ
31st Dec 2018, 5:57 AM
De Leo
+ 1
Or which store the address
1st Dec 2018, 8:14 PM
Unique Sharma
Unique Sharma - avatar