C_74 Pointers in C- part 4 | Pointer to Pointer (Double Pointer)

Поділитися
Вставка

КОМЕНТАРІ • 244

  • @harshuharu4987
    @harshuharu4987 Рік тому +103

    Jenny u have no idea how ur really helping students those who are struggling to learn coding and those who likes to learn coding but not fond of it ( cause of lack of patience n logical thinking ) ur giving confidence Jenny ... Thank you sooooo much love from Karnataka ... God bless u with all u want ... ❤️

  • @Vachu4
    @Vachu4 2 роки тому +65

    The only English I can understand without subtitles.
    It's Jenny's English ❤️❤️

  • @yashhokte1020
    @yashhokte1020 2 роки тому +57

    ***(r) = 50
    As, last * is used for showing that we had declared the pointer and second last * is used to point the address in q and third last * is used to point the address in p and the first * is showing that r stores the address of that variable is in int data type...so if we have to change the value stored in a from 25 to 50 simply we have to write :
    ***(r) = 50 then 50 will points to a and will assign to a and replace to 25 ....
    Thnku so much mam for ur such a great efforts :)

    • @shrutikeshri9634
      @shrutikeshri9634 2 роки тому +1

      Isn't it illegal?

    • @yashhokte1020
      @yashhokte1020 2 роки тому +1

      @@shrutikeshri9634 nah !!!

    • @prashanthg1605
      @prashanthg1605 2 роки тому

      **(*r)=50 is crt we can go like this .

    • @Rishithabajjuri
      @Rishithabajjuri Рік тому

      ya bro even i have done the same thing

    • @unifystudios7171
      @unifystudios7171 Рік тому +2

      we can also go like this ***r=50 is correct and not illegal.
      Even if we want to use it in a printf statement we can go like this ("statements %d
      ", *(*(*r))) or
      ("Statements %d
      ", ***r)
      Both are correct and not illegal

  • @crazyloveever2462
    @crazyloveever2462 2 роки тому +95

    Mam if you teach programming to non IT students they will also love to learn programming language. Becz ur Xplanations are perfect simply ur awesome mam❤❤luv from Tamilnadu

    • @jackthomas5424
      @jackthomas5424 2 роки тому +2

      Bhai sahab kuch jayda hi bol diya 😂

    • @crazyloveever2462
      @crazyloveever2462 2 роки тому +2

      @@jackthomas5424 I don't know hindhi bro

    • @farzanaashraf8136
      @farzanaashraf8136 Рік тому +3

      @@jackthomas5424 Nahi kuch zyada nahi bola unho ne bilkul theek kaha unho ne

    • @Chris-vt6nl
      @Chris-vt6nl Рік тому

      @@jackthomas5424 zyada nahi sahi hi hai madam ithna acha explain karthi hai

    • @shivanshvish4879
      @shivanshvish4879 Рік тому

      @@crazyloveever2462 Don't play Dravidian politics bro. We all are here to learn and study without politics of language.

  • @Soundar250278
    @Soundar250278 2 роки тому +12

    Excellent teaching Mam, i saw many videos about double pointers but it was very abstract, your teaching covers in depth about the double pointers. Thank you for such a wonderful video.

  • @satishpaul8055
    @satishpaul8055 Рік тому

    Very, very thank you, maam, for this amazing explanation. I watched so many videos before it and read a book also, but I was unable to visualise the concept of it until you explained it very well.

  • @anwar6971
    @anwar6971 Рік тому +1

    Man, you explained very well about double pointers.

  • @melthabah1158
    @melthabah1158 2 роки тому +6

    Thank you so much mam your teaching skill is amazing mam...

  • @Ravi.krsingh
    @Ravi.krsingh 2 роки тому +6

    q is pointing to P which value is 1000,
    now we store 25 in place of 1000 then 25 is the value of no any variable.then it may be error. 🙏. t=17:10

    • @limitess9539
      @limitess9539 Рік тому +1

      true, it's error, pointer accepts only adresses as value, rejects anything else
      it's like trying to write int a='a';
      same shit

  • @dijangala
    @dijangala Рік тому +2

    Love from Nigeria, your explanations have saved me fr❤️

  • @aniketmishra5581
    @aniketmishra5581 2 роки тому +2

    Mam you are a best teacher 🙂

  • @chinweokwugiftchiedozie1587
    @chinweokwugiftchiedozie1587 Рік тому +2

    ***r = 50
    This would change the value of int a.
    Thanks ma'am

  • @bawaabdulsilas3681
    @bawaabdulsilas3681 Рік тому

    To change the value at variable "a" which is already storing 25 using a three level pointer we simply do this...
    ***r = 50 or *(*(*r)) = 50; This obviously should work

  • @vaibhavsinhbihola1
    @vaibhavsinhbihola1 2 роки тому +6

    18:24 ***r = 50

  • @gujjuopgohil4796
    @gujjuopgohil4796 Рік тому +9

    18:18 R is a third level pointer so if we want to change value of a= 10 to a= 50 so we need three level pointer so we can write int * * * r = 50 ;

  • @rahamatshaikh9899
    @rahamatshaikh9899 2 роки тому +2

    Thank you so much mam its grateful to me that I am get one of the best teacher forever.
    you have clear my doubt on this topic. I am gonna to complete this c language tutorials.
    🤗

  • @meghasinha1706
    @meghasinha1706 2 роки тому +2

    Thanks for your efforts mam

  • @binuraliyanage8191
    @binuraliyanage8191 4 місяці тому

    I watched a lot of videos but I didn't understand how to do cording so I decided to drop computer science from my three subject combinations but finally I found your videos that can be lighting my life,thank you madam god bless you ❤️❤️

  • @sukanyakolvekar2203
    @sukanyakolvekar2203 2 роки тому

    u r 1 of d best teacher.....i m in turu lob with u.....diiie

  • @musicallyinclined5550
    @musicallyinclined5550 2 роки тому +4

    Thank you so much mam it's grateful to me that I get one of the best teachers forever.
    you have cleared my doubt on this topic. I am going to complete these c language tutorials

  • @devSackey
    @devSackey Рік тому

    You made is so simply that i can look at the question and without thinking the answer is ***r = 50;
    thanks mum

  • @vickyvignesh3844
    @vickyvignesh3844 2 роки тому +2

    mam waited for pointers for a long time thanks for start uploading mam!!.please post all videos as soon as possible mam.please try to upload 2 videos per day mam.Thank you mam.

  • @sushilgbp
    @sushilgbp Рік тому +2

    17:09
    in case of q it will wrong but in case of p . it will right.
    int main()
    {
    int a =10;
    int *p =&a;
    *p = 25;
    printf("a = %d",a);
    }
    a = 25

  • @popularpj5112
    @popularpj5112 2 роки тому +8

    OMG! after 4yrs i know the exactly meaning of pointer

  • @cherrycherith2464
    @cherrycherith2464 2 роки тому +10

    The Best Teachers Teach From Heart Not From BookS 💘🧡

  • @lingarajsatapathy8362
    @lingarajsatapathy8362 Рік тому +1

    Outstanding teaching mam🙏

  • @ramdixit87
    @ramdixit87 Рік тому

    Ma'am You are providing very helpful videos thank you so much and love you Ma'am 🤗🙏

  • @sheikhstudios7
    @sheikhstudios7 Рік тому +1

    Thank you mam.Your teaching skills awesome mam ❤️luv from Kolkata .

  • @CinepolaApurba
    @CinepolaApurba 2 роки тому +5

    Use 'Alt+mouse Left click'
    It make multiple cursor and it is easy to Edit, Rewrite or Delete multiple values at a same time ....
    Like you want to add '
    ' in multiple lines You can click Alt+left mouse button....

    • @vivek5807
      @vivek5807 2 роки тому +1

      I don’t get it …will this work In code blocks

    • @funchannel9330
      @funchannel9330 Рік тому +1

      @@vivek5807 no, it is only work in vs code

  • @gayatriborade9556
    @gayatriborade9556 2 роки тому

    You are really Great Ma'am😀😀

  • @jamilshakil3798
    @jamilshakil3798 Рік тому +1

    very useful for me thank you
    love from bangladesh

  • @franklinekiptoo7359
    @franklinekiptoo7359 Рік тому

    Much love from Kenya

  • @abhisheksahgamerz4138
    @abhisheksahgamerz4138 2 роки тому +6

    You are the best cs teacher mam❤

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @Raam1827
    @Raam1827 Рік тому +1

    I think printing address of any variable correct format specifier is %p.... %x is format specifier for unsigned hexa decimal as of my knowledge

  • @bawaabdulsilas3681
    @bawaabdulsilas3681 Рік тому +4

    Ok, remember that "q" is two level pointer so therefore *q = 25; points to p which also is a pointer and it contains the address of a variable "a", therefore the statement *q = 25 will lead to an error by the compiler.

    • @angelomerwin.m9561
      @angelomerwin.m9561 10 місяців тому +3

      so that means we should use *(*q)=25; to store the value in p,which will ultimately be stores in a as a=25; Am i right sirr

    • @qtime69lol17
      @qtime69lol17 9 місяців тому +1

      @@angelomerwin.m9561 Yes, you are right.

  • @abhisheshgaur8400
    @abhisheshgaur8400 2 роки тому +1

    nice lecture mam , thanks love you so much mam

  • @mr-pm9eg
    @mr-pm9eg 2 роки тому

    Mam great pura dil se clearity a he nhi rha tha... Bs ek baar dekha bs khtm... Great👍

  • @c.d.premkumar6867
    @c.d.premkumar6867 Рік тому

    Excellent !

  • @star77670
    @star77670 Рік тому

    Ma'am thank you so much 💓 💗 💛 💖

  • @sunandamallick4310
    @sunandamallick4310 2 роки тому +1

    Best video i have ever seen ❤️

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @isoopal9357
    @isoopal9357 2 роки тому +4

    You are the best cs teacher ma'am..🥰

    • @joiceabraham2102
      @joiceabraham2102 2 роки тому +2

      @@naddysahu123 what the hell😠

    • @aniketkumar3126
      @aniketkumar3126 2 роки тому +1

      @@naddysahu123 hey you don't have sister or what u don't know how to behave😡😡

  • @soccerworld9938
    @soccerworld9938 2 роки тому +10

    My Score out of 💯 is 200/💯
    Just one word madam "MIND BLOWING" 👌👌 madam found great in last 3 lectures madam and this is for what iam fighting for Madem and keep going madam with more MIND BLOWING Lectures Madam........
    God bless You madam
    Thank you mam
    Jai hind madam

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @MehendiByPooja
    @MehendiByPooja Рік тому

    18:03
    ***r=50.
    Printf("a=%d",***r)

  • @IbrahimADT
    @IbrahimADT Рік тому

    Thanks enjoying it

  • @yashmali5291
    @yashmali5291 Рік тому

    Nice teaching and explanation

  • @rajendraverma5346
    @rajendraverma5346 2 роки тому

    Ayeee haayee haayee maja agaya mam pura smj aya very easy

  • @emotionallife2035
    @emotionallife2035 2 роки тому

    Thanks mam!

  • @SravanKumar-uc6qt
    @SravanKumar-uc6qt 2 роки тому +1

    Nice introducing, so help full this programm

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @dipsaha1472
    @dipsaha1472 2 роки тому +3

    18:18
    ***r=50 //it will change int a 10 to 50 then
    printf("a=%d",***r);

  • @riddhi_edits
    @riddhi_edits Рік тому

    Thank u so much mam💜

  • @tesloachriekchol9041
    @tesloachriekchol9041 2 роки тому

    I like your teaching forsooth

  • @OptionstraderSri
    @OptionstraderSri 2 роки тому +1

    Everyone loves to listen ur classes

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @suryakantpatel7793
    @suryakantpatel7793 2 роки тому +2

    thanku maam ap ka video very useful hai

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @zooomba62
    @zooomba62 2 роки тому +1

    Respect only😍🔥

  • @jaganpradhan3395
    @jaganpradhan3395 Рік тому

    Tq so much ma'am

  • @Mr.Utkarsh17
    @Mr.Utkarsh17 7 місяців тому

    thanks a lot maam

  • @BTCIV_AyushMalviya
    @BTCIV_AyushMalviya 2 роки тому

    Thankyou Mam

  • @gtechninja
    @gtechninja Рік тому +1

    thank you mom!. but what if we have: char a[ ] = "123456789"; or char *str = "123456789"; how do i relate double pointer what u teach us with char array and char pointer. thank you again.

  • @kanavgilhotra4456
    @kanavgilhotra4456 2 роки тому

    Right

  • @AbdulAziz-tj7oe
    @AbdulAziz-tj7oe 5 місяців тому

    Thanks

  • @syagamreddysrilakshmi6707
    @syagamreddysrilakshmi6707 Рік тому +1

    Hi,
    int main()
    {
    char **str;
    str=(char**)malloc(sizeof(*str));
    scanf("%s",str);
    printf("string is %s", &(*str));
    free(str);
    }
    is it correct way of writing?

  • @tirthtanna7771
    @tirthtanna7771 2 роки тому +1

    it will give error as it is a single type pointer and that pointer is not storing address of any variable, it is totally blank

  • @prashanthmadishetti9591
    @prashanthmadishetti9591 2 роки тому +2

    Do Python and SQL videos 😇

  • @maryannemuthoni5388
    @maryannemuthoni5388 5 місяців тому

    To change value of a to 50 with r:
    #include
    int main(void)
    {
    int a = 10;
    int *p = &a;
    int **q = &p;
    int ***r = &q;
    ***r = 50;
    printf("%d", a);
    }

  • @sarthakvarshney3830
    @sarthakvarshney3830 2 роки тому +10

    Mam u are the best teacher ever ✨

  • @fuadhamedmohamed4311
    @fuadhamedmohamed4311 2 роки тому

    18:08 we can update ( a ) using ( r ) like this ***r=50 ;

  • @vasusharma6210
    @vasusharma6210 2 роки тому

    Door de Rishtedar.. from Punjab 'Jalandhar'.

  • @debojitacharjee
    @debojitacharjee 2 роки тому +7

    *BUT YOU DIDN'T TELL WHERE AND WHY DOUBLE POINTER IS USED* - it is used to reduce exesive writing of code and also for the dereferencing of data values of a function which is outside another function. Just like a function calling another function.

  • @Ddot-cd1in
    @Ddot-cd1in 2 роки тому

    ***(r)= 50 and change the value of a

  • @GalaxyCookies76
    @GalaxyCookies76 Рік тому +1

    😂 I like that Door kay Rishtaydaar

  • @rishikeshayre
    @rishikeshayre Рік тому

    Good explanation but can you explain where we would use double pointer , whats the application of it

  • @irfanbinyounus6315
    @irfanbinyounus6315 6 місяців тому

    Best ever

  • @rahimmahagonde9579
    @rahimmahagonde9579 11 місяців тому

    very good mam

  • @zabihullah4251
    @zabihullah4251 2 роки тому +2

    Veryb eautiful teacher with best lecture. So nice.

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @megh5013
    @megh5013 2 роки тому

    Thanks a lot Mam for this lecture!!!

  • @python-2023
    @python-2023 2 роки тому +1

    We like your channel we learn alot of about c programme.
    But one thing some of your videos don't have subtitles,
    Because some foreign watch the video your English language pronunciation is a little different with us we can't get completely concept of lecture without subtitles.
    Thank you

    • @inamulsha
      @inamulsha Рік тому +2

      Sometimes she used Hindi word also 😄😄

  • @gauravbutle2429
    @gauravbutle2429 2 роки тому

    why we use pointer to store memory? we can simply store with simple variable.

  • @Mister_jha
    @Mister_jha 2 роки тому

    Mam pls use the markers of 2 different colour.

  • @AnilYadav-qn3ch
    @AnilYadav-qn3ch 2 роки тому +1

    mam i am your regular student ❣❣❣❣

  • @mukeshjaiswal8079
    @mukeshjaiswal8079 2 роки тому

    Mam u awesome

  • @354_rajput
    @354_rajput 10 місяців тому

    please continue DAA series mam😊

  • @BhuvanTotad-kx7lo
    @BhuvanTotad-kx7lo 4 місяці тому +1

    it is a legal pointer

  • @niramalakanukolanu3222
    @niramalakanukolanu3222 2 роки тому

    Mam where you do coding in dev++ or other tell

  • @CHANDANKUMAR-bc7qk
    @CHANDANKUMAR-bc7qk 2 роки тому +9

    Mam waiting for the C++ lectures,,, please start it 🙏

    • @shivambharti4643
      @shivambharti4643 2 роки тому +1

      Also waiting

    • @sangramswain5888
      @sangramswain5888 2 роки тому

      Its similar as C programming there is only difference is OOPS concept

    • @sangramswain5888
      @sangramswain5888 2 роки тому

      @@ashikillahi6219 No it's neither difficult nor easy you have to practice everyday the problem of C++

    • @sangramswain5888
      @sangramswain5888 2 роки тому

      @@ashikillahi6219 In my opinion go through python & start DSA also

  • @user-st4lb4gf8y
    @user-st4lb4gf8y 4 місяці тому

    By ****r=50, we can change the value of a to 50

  • @kishorhr1100
    @kishorhr1100 Рік тому +1

    what is use of pointer to pointer

  • @mdtahir9645
    @mdtahir9645 2 роки тому +1

    Tq mam

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @shaikakbar2413
    @shaikakbar2413 Рік тому

    Nice tech

  • @gujjuopgohil4796
    @gujjuopgohil4796 Рік тому

    *q = 25 is illigal because p= 1000 and its storing address of a so we ultimate brack the points so it's definitely not possible

  • @Akeshma
    @Akeshma 2 роки тому +4

    Thanks ... but the question is why we need to use pointers instead of just variables ?

  • @Dhakarey_G
    @Dhakarey_G 2 роки тому +2

    Nice

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @bellalmahtab8220
    @bellalmahtab8220 2 роки тому

    Mam recursion aur function pr video BNAYEE PLZZ

  • @mr_jagan9233
    @mr_jagan9233 2 роки тому +1

    Love u soo much😘😘😘😘💖

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @Logan-ig7sm
    @Logan-ig7sm 11 місяців тому

    16:20 we get the same output mam

  • @aniketkumar3126
    @aniketkumar3126 2 роки тому +1

    WoW mam ❤

    • @computer5548
      @computer5548 2 роки тому

      ua-cam.com/video/VKKErhhi2iM/v-deo.html

  • @marvelanddisneyworld3141
    @marvelanddisneyworld3141 2 роки тому

    int ***r=50..👍🏻👍🏻

  • @sirishagownolla1974
    @sirishagownolla1974 Рік тому

    Mam can u pls make video on pointers and strings topic

  • @ADISHVAR1
    @ADISHVAR1 2 роки тому

    Whenever I write address in %d form it comes negative why?

  • @mamidiaishwarya2928
    @mamidiaishwarya2928 Рік тому

    Love from nzb

  • @VIKAS-GAUR
    @VIKAS-GAUR 2 роки тому

    How many levels of printer.