Dynamic Memory Allocation in C++ Part 2 | C ++ Tutorial | Mr. Kishore

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 49

  • @NareshIT
    @NareshIT  Před 5 lety +5

    Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL

  • @akshaymore3944
    @akshaymore3944 Před 7 lety +10

    sir , i'm u r student, and i like u r teaching so much.....sir, plz upload all videos of c++ (i.e arrays,inheitance, pollymorphism videos) as possible as fastly.............mi and my all friends are waiting to watch u r remaining videos.............plz, clear the conept of linked list , functions and inheritance .....with daily life examples.........and sir i'm so much happy whenever i was see u on you tube.........sir, provide all videos fastly..........

  • @otabeksaibnazarov5704
    @otabeksaibnazarov5704 Před 3 lety +4

    Thank you Mr Kishore, I expect more lessons in C++

  • @MayankKumar8520
    @MayankKumar8520 Před 4 lety +7

    delete p will not delete whole memory allocated by array.it will only that memory which is pointed by pointer.

  • @soniamalik4929
    @soniamalik4929 Před 3 lety +2

    Great teaching Sir....thnku so much🙏

  • @makhdooom2715
    @makhdooom2715 Před 5 měsíci +1

    ur this video is inunderstandable to me

  • @komarolusreeram6854
    @komarolusreeram6854 Před 4 lety +2

    Thank u so much sir I can't say how much u helped me.

  • @kumarirashmi6828
    @kumarirashmi6828 Před 4 lety +7

    You have written wrong program.
    You have written Delete p;
    But instead of delete p it will be delete[] p;

  • @mukeshkanike995
    @mukeshkanike995 Před 6 lety +2

    Best teaching sir

  • @srinivasnagayolla8821
    @srinivasnagayolla8821 Před 4 lety +1

    Nice explanation. Thanks. Yes as mentioned in the comments delete p will not delete 2d array

  • @prithaviraj4317
    @prithaviraj4317 Před 4 lety

    Sir you are amazing when it comes to clear the concept but , you speak so slowly that i have to watch video on double speed .
    ...

  • @arun_9342
    @arun_9342 Před 7 měsíci

    thank you sir

  • @sahilwarhade817
    @sahilwarhade817 Před 3 lety +1

    After manipulators u directly started dynamic memory allocation

  • @floriand4359
    @floriand4359 Před 2 lety

    Thank you sir!

  • @bharathchippa3773
    @bharathchippa3773 Před 4 lety +5

    He’s awesome in teaching, but got me cracked at 1:26

  • @samkitshah405
    @samkitshah405 Před 5 lety +11

    Confusing

  • @sravyach1032
    @sravyach1032 Před 4 lety +2

    Int *p=new int[n] or p=new int*[n] can be used???

    • @allenbenny5981
      @allenbenny5981 Před 3 lety

      no this can be used
      Int **p=new int*[n] or p=new int*[n] can be used???

  • @projects0126
    @projects0126 Před 2 lety

    Nice video 👍👍

  • @aravindanradhakrishnan8969

    should it not be p[r] = new *int[nc] instead of p[r] = new int[nc]

  • @perumalteacher1845
    @perumalteacher1845 Před 5 lety

    your teaching is very nice... super sir.

  • @rabiabibi5643
    @rabiabibi5643 Před 6 lety

    Thanks

  • @user-lm5ju8nc2t
    @user-lm5ju8nc2t Před 5 lety

    thanks, very clear!

  • @yyndsai
    @yyndsai Před 5 lety

    Will the delete p deletes all the memory created

  • @kokulanm5369
    @kokulanm5369 Před 7 lety

    Its so easy and useful. But I send a mail to Naresh it they don't reply it.

  • @srinivasprasad308
    @srinivasprasad308 Před 3 lety

    while reading the elements it should be &P[r][c] not P[r][c].

  • @mansikumari206
    @mansikumari206 Před 2 lety

    Can I get videos in sequence ???

  • @venkateshprasad6829
    @venkateshprasad6829 Před 6 lety

    I'm getting this compilation error in this program.
    error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream}' and 'const char [13]')
    cout>>"elements are"

    • @vinodkashyap599
      @vinodkashyap599 Před 6 lety +1

      It should be cout

    • @chuba8842
      @chuba8842 Před 6 lety

      You're using the wrong operator. ">>" is used for reading input, and since "cout" is for output purpose , you must use "".

  • @a-09surajanand15
    @a-09surajanand15 Před 2 lety

    sir there is an error in this program ,output is not matching .

  • @watchernode6138
    @watchernode6138 Před rokem

    Did anyone write notion notes for this ?

  • @simeyabate4849
    @simeyabate4849 Před 4 lety

    13:26 I think you are printing out the address not the value... You have to dereference p: *p[r] [c]

    • @pranav4724
      @pranav4724 Před 4 lety

      no thats what dynamic memory location is about. No need to dereference

  • @prithaviraj4317
    @prithaviraj4317 Před 4 lety

    and also there should be "delete[] p" not "delete p"

  • @BarfeelaPlays
    @BarfeelaPlays Před 5 lety

    Code not working

  • @TheHardUpscJourney
    @TheHardUpscJourney Před 6 lety

    is there any other way to print the array element?

    • @jayeshkaushik4334
      @jayeshkaushik4334 Před 5 lety

      You can use ×(*(p+c)+r) although i am not sure but it might work

  • @ofcosar
    @ofcosar Před 3 lety

    delete operation is totally wrong. first, you should have deleted 1d arrays in the 2d array then you should have deleted 2d pointer.

  • @vinayaklokhande3347
    @vinayaklokhande3347 Před 4 lety +2

    Sir your teaching is very confusing
    Shrinivas sir will teach very clearly and fluently than you
    I think they have to teach c++ also
    So we will understood the concepts very clearly
    You also have to pronounce the words clearly

  • @vijaydinanathchouhan3816

    You r better than saurabh shukla

    • @mahaan6218
      @mahaan6218 Před 5 lety +6

      Why always comparison man? Watch in silence and ask questions (if you have them). Please stop this culture of comparing. Sorry but it sucks :-(

  • @allankumar7552
    @allankumar7552 Před 6 lety +1

    THANK YOU SIR