Pointers | SoloLearn: Learn to code for FREE!

+3

Pointers

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

5/1/2019 3:48:35 AM

Amaya

6 Answers

New Answer

+5

Check out on YouTube about pointers , you will understand better

+14

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 🤙🤙

+9

Pointers in C by Saurabh Shukla https://youtu.be/d26HpQ2DKUo C tutorials by Saurabh Shukla https://www.youtube.com/playlist?list=PL7ersPsTyYt2Q-SqZxTA1D-melSfqBRMW

+7

https://www.sololearn.com/discuss/1521991/?ref=app https://www.sololearn.com/discuss/1528533/?ref=app https://www.sololearn.com/discuss/84131/?ref=app https://www.sololearn.com/discuss/1070870/?ref=app https://www.sololearn.com/discuss/1400723/?ref=app https://www.sololearn.com/discuss/734060/?ref=app https://www.sololearn.com/discuss/199279/?ref=app https://www.sololearn.com/discuss/1491177/?ref=app

+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

0

Please Put a program to understant ,where we use( - ) backward memory location in pointers