Good job. "move the pointer" and "increment the data" are the magical words helps me to understand this mystery.
@omleen3187
5 жыл бұрын
When use & abd when use * ?? Does ++&p make sence? Thanks
@mohdhaseeb6139
6 жыл бұрын
So far the clearest, well sorted and detailed video of this concept.
@sm3227
5 жыл бұрын
Please upload more videos like these on top priority! This video series has the potential to become your blockbuster series! And Thank you for bringing such an informative and clearly explained content to us!
@sohebkhan4230
3 жыл бұрын
BHUT sahi sir..sare concept clear ek video se..Good job
@nedim1511
6 жыл бұрын
Here is another case: (*++ptr)++ 1) FIrst, move the pointer to the next element. 2) Second, increment the value of the element that the pointer is now pointing to.
@nedim1511
6 жыл бұрын
Abdul Bari Sure, it is (++*p)++
@lamo440
6 жыл бұрын
What's d difference for prvs one even there u have used single asteric
@rushikothari1261
5 жыл бұрын
@@nedim1511 if *p=5 then answer will be 7 in this case right?
@spritualandintellectualzon4280
4 жыл бұрын
Mere life ka sabse best explanation dekha hu pointers ka. Clear cut and precise
@rashi2937
4 жыл бұрын
Its the best video I have ever seen on pointers Thanks a lot sir 😀😀
@praxisdev1884
7 жыл бұрын
Best explanation I've seen of these expressions so far. Well done.
@saikiransiripuram8747
5 жыл бұрын
Fabulous explanation sir....its really amazing Easily understandable....upload more vedioes
@rohitkadhane235
4 жыл бұрын
u r great sir . i have taken expensive courses but the way u expain no one has that talent ..thankyou so much sir
@vinit7tribhuvan
4 жыл бұрын
sizeof(int) is 4 bytes while writing C programs using standard GCC compiler
@jsteezeful
4 жыл бұрын
Is it not the operating system's memory management unit that decides this?
@vandanpatel7937
12 күн бұрын
16 bit systems have 2 bytes, While 32/64 bit systems have 4 bytes
@ishan7824
4 жыл бұрын
Nicely explained! 1.5x or 1.75x is preferable
@chamangupta4624
3 жыл бұрын
int , long , float are all 4 bytes
@ahmedyasser4928
Жыл бұрын
He is telling you to assume that the size of int is 2 bytes to explain the idea
@rkjaipur007
5 жыл бұрын
Sir your teaching is amazing but one request your board teaching suits best plz try to have that only if feasible..
@apoorvadixit3819
4 жыл бұрын
Thanks Sir for beautifully elaborating this concept 😊😀
@f1n1st13
2 жыл бұрын
good explanation thanks! but *p++ is equal to *(p++) due to higher priority of post-increment. Therefore meaning this expression is : 1) move pointer 2) read the data. Please correct me if i am wrong
@abdul_bari
2 жыл бұрын
post means do it later, so first *p(take data) then increment pointer.
@f1n1st13
2 жыл бұрын
@@abdul_bari what are differences between *p++ and *(p++) ?
@raktimbanerjee8054
4 жыл бұрын
Sir, here 'p' is a integer pointer which can point an integer number. Here "p = &A;" means pointer to an array. So, it must give an error like "cannot convert int[5]* to int* ". So, the declaration will be change and this will be int(*p)[5]; now it possible to point a 5 integers array.
@kannaiyand2707
3 жыл бұрын
In a short span of time, You explained well. Thank you !!
@harshilvaghasiya7977
2 жыл бұрын
Best explanation my all doubt is clear.thanks to give your valuable time 😌appreciate 👍👍
@Aabara_ka_dabara
Жыл бұрын
such a informational video ....learned something new,,
@prashanthi8492
4 жыл бұрын
Important words 1)move the pointee 2) increment the data 3)read the data or take the data
@Trippykiyay
8 ай бұрын
Thanks for an amazing explanation.
@debaratidasgupta3182
6 жыл бұрын
This video helps me a lot. Thank you
@Shortvideo-ru3sm
4 жыл бұрын
First time in my life , I have seen this kind of video
@kusum514
6 жыл бұрын
its an amazing video. really needed to understand this concept
@userdetails1
Жыл бұрын
have you turned monitor off and back on again. that help fix pointers on monitor cd tray
@ahmednafiunoman5040
7 жыл бұрын
Thank you so much sir.........love from Bangladesh
@abhimanyuchaturvedi9110
7 жыл бұрын
Size of integer is 4 bytes!
@RAFAAJ2000
7 жыл бұрын
in 32bit systems
@praxisdev1884
7 жыл бұрын
Abhimanyu Chaturvedi Depends on the system.
@jahanzaibshahid07
7 жыл бұрын
yes
@udaygaikwad583
6 жыл бұрын
it's machine dependent only
@azizurrehman007
6 жыл бұрын
its the modern version of integer which has 4 bytes, old c compiler used to have 2 bytes
@shraddhanahar1998
3 жыл бұрын
Post increment has higher priority than pointer,last answer is 8 not 5
@azizdeghais5852
2 жыл бұрын
Best explanation ever .
@vatsalrai1657
10 ай бұрын
Loved it thank you sir.
@parasmyname784
4 жыл бұрын
Thank you sir .. Crisp and clear explanation
@nav-kf2gq
4 жыл бұрын
Crystal clear explanation thanks
@KusumLata-kt7xb
3 жыл бұрын
Thank You very much sir, this helped a lot :)
@LukasanaTK
6 жыл бұрын
very very well explained thankyou very much for the effort.
@ManasRaiNew
8 жыл бұрын
interesting...thanks for sharing with us.
@ratul5076
6 жыл бұрын
Very useful video. Thanks alot.
@manishthakur4329
2 жыл бұрын
Thank you sir it was really helpful
@Fullstackdev-
2 жыл бұрын
thank you very good explanation
@ankitrathore3946
7 жыл бұрын
pointer always store addresses no matters what datatype is ...they all occupy same memory space
@ShivamSingh-hk5pn
3 жыл бұрын
Int a=1 ; Printf("%d%d%d", a,a++,++a); Please sir Very simple but concept important h samjha deejiye .
@sriramannadurai9287
5 жыл бұрын
you are a life saver.
@poojarani-uz5yg
5 жыл бұрын
Thank you sir.. Please keep publishing such videos
@angadbansode720
7 жыл бұрын
Thank you sir ..such a good explanation..
@kautukraj
5 жыл бұрын
Very helpful.
@kannaiyand2707
5 жыл бұрын
Very nicely presented. Thanks for helping us to understand.
@shubhamgalande9619
2 жыл бұрын
best Explanation
@Aabara_ka_dabara
Жыл бұрын
(*p)++: This expression first dereferences the pointer p to access the value it points to. Then, it increments the value itself, not the pointer. *p++: This expression is an example of the post-increment operator. It first dereferences the pointer p to access the value it points to and then increments the pointer p to point to the next memory location. The value accessed from the dereferenced pointer is returned as the result of the expression.
@hhhgggds
5 жыл бұрын
Very good explanation
@Vinay49360
4 жыл бұрын
Sir is the best ❤❤❤❤
@theamjolnir9641
6 жыл бұрын
Is there a guide for pointer arithmetics? Like how to read from left to right?
@theamjolnir9641
6 жыл бұрын
are there resources you'd recommend?
@cs_techno_world
5 жыл бұрын
Ausome vedio...sir..A1++++
@kevinvarghese9919
6 жыл бұрын
Very nice presentation sir!
@tharukanadeeka
6 жыл бұрын
Actually very useful video, Thank you so much
@ahmadabdel9114
4 жыл бұрын
thank you
@suganprabu982
5 жыл бұрын
Bro i like ur all vedio ur explaination very nice please upload çpp vedio function returing pointer
@mehdinouira3540
2 жыл бұрын
can you make another video about p+= and related lines
@bashmogd4468
4 жыл бұрын
thanx for pointing this out
@rimjhim4560
3 жыл бұрын
Thank you so damn much
@AnandKumar-ju5im
4 жыл бұрын
Sir what about *(p)++ ? Is it same as *p++ ?
@sjamal4403
5 жыл бұрын
Well explained, jazakallah
@rkumaresh
6 жыл бұрын
Simple and very clear
@srilathabandaru1073
6 жыл бұрын
Had good clarity..thanks
@shraddha758
3 жыл бұрын
How about ++*p++ ? Or --*q++ Or --*q-- ? What will these do?
@spyrex3988
Жыл бұрын
do these compile
@twinklegarg1413
3 жыл бұрын
Sir pointer operations nd pointer Arithmetics me difference hota hai??
@twinklegarg1413
3 жыл бұрын
Sir pls reply
@abdul_bari
3 жыл бұрын
dereferencing operation is not arithmetic. rest of the operations are arithmetic.
@twinklegarg1413
3 жыл бұрын
@@abdul_bari sir can u pls tell me what operations come under pointer operations and pointers arithmetics. ??
@Milos89kv
5 жыл бұрын
Thanks, this was great.
@rohandevaki4349
5 жыл бұрын
how do u know that a[0] takes 100 and 101 it may take 1000 and 1001 also right?
@rashi2937
4 жыл бұрын
Same question
@karanvirsingh2830
3 жыл бұрын
That is random address
@rohandevaki4349
3 жыл бұрын
@@karanvirsingh2830 thanks, i have known it after few days, but you replied after one year. Lol. anyways thanks
@vikramsinhthorat9192
4 жыл бұрын
very nice ....
@ombirsingh1018
6 жыл бұрын
fabulous👍👍👍👍
@kovaiartist
5 жыл бұрын
Thank you so much for the video sir
@FlixityOfficial
6 жыл бұрын
size of int 2 bytes?????????????? i think it is 4 bytes!
@FlixityOfficial
6 жыл бұрын
ok sir!
@FlixityOfficial
6 жыл бұрын
thank u sir!
@abhishekm1903
4 жыл бұрын
Awesome
@nildimple30
6 жыл бұрын
p and q k bich to srf 2 hi elements h to 3 kaise hua
@hiteshkumar3442
5 жыл бұрын
Extremely helpful!🙌
@tannusharma2285
5 жыл бұрын
thank u so much sir......
@rajajaswani8228
6 жыл бұрын
nice dicription .simple superb
@rakeshnama5965
6 жыл бұрын
Helpful video
@pinkysaikiadutta9752
5 жыл бұрын
well explained...Clear with pointer operations
@SHASHANKRUSTAGII
6 жыл бұрын
You missed one thing Pointer assignment to 0 or NULL which is defined in STDLIB.H if(p==NULL) is legal
@priyasarchive3208
6 жыл бұрын
thank you so much sir
@sharathkumarhk4260
4 жыл бұрын
(*p)++ isn't this cause error? Lvalue required?? Bcz increment should be done only on variables , *p gives a integer , ex: *p = 5 5++; is invalid! I checked it's not giving error but how?
@sverkeren
4 жыл бұрын
Because *p IS en lvalue.
@Ishankk
5 жыл бұрын
The arithmetic on on pointer is incorrect, adding 1 to a pointer increases the address its pointing to by 1.
@Ishankk
5 жыл бұрын
@@abdul_bari it seems i was indeed wrong, i had something else in mind when i wrote that, sorry.
@rahulrok6000
5 жыл бұрын
Simple and best explanation
@shivaniagarwal7745
6 жыл бұрын
very helpful thx a lot
@adityamisra7702
3 жыл бұрын
thanks
@hassanshaikh2578
5 жыл бұрын
Thank you sir
@alyaqistina597
8 ай бұрын
thankyouuuuu
@gantagayatri1251
5 жыл бұрын
Super sir 👌👌
@shawnyyboyy
6 жыл бұрын
@1:42 , the last equivalence you made is invalid. It should be : p=*&a;
@isheep9025
5 жыл бұрын
its not,we can exclude star in line other than declaration
@KZainUlAbideen
6 жыл бұрын
Kamal sir
@purvaraut2318
3 жыл бұрын
char *ptr= "Pointer"+2; ptr will point to ?
@lumosss
2 жыл бұрын
sizeof(char) = 1 byte so ptr will increment by two bytes
@guliyevshahriyar
Жыл бұрын
Thx
@raziasulthana4840
7 жыл бұрын
++p means preincrement then move to the left element but u move right element I did not understand
@shaktipravesh
4 жыл бұрын
Please complete Java lessons
@SSPR007
6 жыл бұрын
++(*p) and *p ++ are not same
@SSPR007
6 жыл бұрын
*p ++ will read value and then increment address ++(*p) incremented value will be read *p ++ address will be incremented and ++(*p) value of variable incremented, Ex array[3] = {1. 10. 20} *p = array; *q = array; *p++ results 1 and then points to array[1] ++(*p) results 2 and points to a[0]
@vishnupriyabharathi551
5 жыл бұрын
@@SSPR007 you are right,output for *p++ is 5
@rabeaahsan2070
5 жыл бұрын
best video
@whuzzzup
4 жыл бұрын
1:40 p=&A > Error C2440 '=': cannot convert from 'int (*)[5]' to 'int *'
@raktimbanerjee8054
4 жыл бұрын
Yes, this should give an error because 'p' is a pointer variable which can point only an integer number but here p = &A; means pointer to an array. How possible ? Please read this article if you have till any problem on pointer to an array . www.google.com/amp/s/www.geeksforgeeks.org/pointer-array-array-pointer/amp/
@bushykhan4024
5 жыл бұрын
Thank sir
@ragavendhrank1028
5 жыл бұрын
concept is understood clearly..but audio recording is disgusting..even the noise of breathing is heared which is quite irritating while listening
Пікірлер: 148