What is a pointer? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 3

What is a pointer?

Accualy i read that from a yt chanel but i haven't understand perfectly. I hope you will answer it in a easiest way.

21st Dec 2021, 7:23 PM
Aman Singh
Aman Singh - avatar
4 Respuestas
+ 4
Pointers are variables that store the memory addresses of other variables. * = pointer & = address e.g: int a = 5; int *pointer; pointer = &a;
21st Dec 2021, 9:37 PM
Str1k3rFl0
Str1k3rFl0 - avatar
+ 6
A pointer is used to store the memory address of other variable . Declaration of pointer : It is declerad using asterisk (*) . Syntax : Type of pointer * pointer name. Eg : int *p // pointer p type integer char *a// pointer a type character
21st Dec 2021, 7:36 PM
Aparna
Aparna - avatar
+ 2
Pointer is a variable stores address of another variable Pointer can be used as or in Variable Array String Function Structure/Union File Pointer is having powerfull feature Dynamic Memory Allocation Makes application dynamic and effective
23rd Dec 2021, 9:11 AM
sree harsha
sree harsha - avatar
+ 1
Oh ok thanks to all of you🙏🙏
22nd Dec 2021, 4:47 AM
Aman Singh
Aman Singh - avatar