Pointers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Pointers

How to learn pointers in C programming? It's hard!!😰😰

1st May 2019, 3:48 AM
Amaya
Amaya - avatar
6 Answers
+ 3
Check out on YouTube about pointers , you will understand better
1st May 2019, 3:55 AM
Rstar
Rstar - avatar
+ 17
Firstly keep in mind that Pointer is not hard at all. Pointers in C language is a variable that stores/points the address of another variable. A Pointer in C is used to allocate memory dynamically i.e. at run time. The pointer variable might be belonging to any of the data type such as int, float, char, double, short etc. e.g.👇👇 #include<stdio.h> int main() { int *p, x; x=52; p=&x; printf("%d\n",p); /* Address of x */ printf ("%d\n",&x); /* Address of x */ printf("%d\n",*p); /* value of x */ printf ("%d\n",x); /* value of x */ return 0; } --------------------------------------------- copy the code & run yourself. Note:- Remember pointer variable stores the address & address always in the form of unsigned integer.So any type of pointer always takes 2 byte in memory. -------------------------------------------- hope u got the answer 🤙🤙
1st May 2019, 9:34 AM
Mohd Abdul Sameer
Mohd Abdul Sameer - avatar
1st May 2019, 8:37 AM
Yamin Mansuri
Yamin Mansuri - avatar
+ 2
You just learn the basic concept of pointers, why they're used and how it works... Search on youtube like: Basic concepts of pointers
1st May 2019, 6:20 AM
Tahir Iqbal
Tahir Iqbal - avatar
0
Please Put a program to understant ,where we use( - ) backward memory location in pointers
20th May 2020, 7:21 AM
Surjit Fnd
Surjit Fnd - avatar