Array & Pointers in C Programming with examples

preview_player
Показать описание

In this video we have discussed Array & Pointers in C Programming with examples.

►Programming in C (Complete Playlist):

Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Design and Analysis of algorithms (DAA):
►Database Management System:
► Theory of Computation
►Artificial Intelligence:
►Computer Networks (Complete Playlist):
►Operating System:
►Structured Query Language (SQL):
►Discrete Mathematics:
►Compiler Design:
►Number System:
►Cloud Computing & BIG Data:
►Software Engineering:
►Data Structure:
►Computer Architecture :
►Graph Theory (Complete Playlist):
►Digital Logic:

---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Рекомендации по теме
Комментарии
Автор

CORRECTION:
p=1000
7:06
after *p++ the p pointer is pointing to the second element, that is it will hold the address 1004, in the next line ++*p, address 1004 is dereferenced and the value at this address is incremented, i.e the 2nd element of the array changes to 3. *++p if we do then first p is incremented to 1008 and p now points to third element of the array and now dereferencing 1008 will give the third element 3

comp_yadnika_kotwal
Автор

In ex 2 in the time of disp fun call that will be disp(a);
Not disp(&a);
I'm so much impressed by ur teaching style sir ❤️.

uttaranghosh
Автор

Sir your work is great. Keep it up. Thank you so much

abcdrabcds
Автор

Sir C programming and Data structure basic se Advance tak ( whole syllabus ) par videos banaiye.

vaibhavshreenamdev
Автор

Typo in first program:

p = x
(as opposed to p = &x, since we are equating the two pointers p and x, which is a pointer pointing to the first element of the array)

akshathashenoy
Автор

Sir you made a mistake at 6:30
printf("%d", *p++); will give the answer 1 but will increment pointer p to its next location so pointer p will contain the address 1004 not 1000.

undefined_exception_
Автор

Thank you so much, it's very helpful for interview preparation.

mizanurrahaman
Автор

Sir ajjj first time mujhe arrays and pointers clear hue

AnjaliGalot
Автор

According to output this program is auto type storage...if it is static then o/p will be
1, 1,1,3,5,3

triptishori
Автор

Itne ache se first time kisi ne samjhaya thank you sir😊

TanyaGupta-xz
Автор

Sir ! *P++ mein 1 answer aya but after answer, us ko 2 nhe ho jana cahiay. Next operation mein ++*p mein phr 2 use nhe ho ga??

Engr.MarwaKhalid
Автор

Sir you are great thank you so much sir it is very very helpful for me thankyou sir

parbhatbansal
Автор

Thank you sir, bahut knowledgeable video thi and easy to understand

Pankaj__singh
Автор

Sir your teaching style is very very very best. Thank you for helping us 🙏🙂

puja--sahoo
Автор

Waoo Sir meme to pahle baar apki video Dekhi hai or usne hi ek dam jkash Smj me aaya hai gjeb sir Ji gjeb

babitadevi
Автор

wow, and thank you it is really helpful

Honeyrathore
Автор

sir *(p+4) is out of bound of array bcz p is pointing to X[1] at this point.

amorphiouslattice
Автор

You did great help of mine in understanding of pointers.

NidsFahad
Автор

" *ptr++ " will print 1 but ptr will point to location 1004 as Postfix..
Any reply is appreciated...

bhojaramsa
Автор

Thank you so much sir you have given a very detailed explanation it was very helpful

Rachana-chinhalli