92 - Dynamic Memory Allocation for Two Dimensional Array in C Programming

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 61

  • @pushpraj853
    @pushpraj853 4 года назад +8

    Best explanation on DMA of 2D array.
    Thank you So Much.
    You made it very easy to understand the concept, only a teacher by heart can do it.
    Appreciate the effort.

  • @JHALAKHOTA
    @JHALAKHOTA 3 года назад +1

    excellent madam your teaching style is very unique,

  • @patienceareghan5527
    @patienceareghan5527 3 года назад +1

    Best explanation I've found

  • @HelloHello-tt5oe
    @HelloHello-tt5oe 3 года назад +5

    Such a golden content

  • @vitocarleone7197
    @vitocarleone7197 3 года назад

    this is the best explanation of this topic on the youtube,keep posting mam

    • @CodeSemantic
      @CodeSemantic  3 года назад

      Thank you for watching. I will try my best

  • @RohitSingh-sb3sw
    @RohitSingh-sb3sw 3 года назад +1

    Much needed video it was i have searched alot about this, but unable to find the easy solution. After just watching the video once concept is very well understood. Thank you mam.

  • @abrarrahmanabir9588
    @abrarrahmanabir9588 2 года назад

    BEST VIDEO ON DMA OF 2D ARRAY!!!!!

  • @rajasekark5228
    @rajasekark5228 2 года назад +1

    I really appreciate your work mam. thank you, I understand very clearly.

  • @sakshiag0506
    @sakshiag0506 2 года назад +1

    Thank you so much madam, you are an angel. You solved my crucial doubt.

  • @satvikkhare1844
    @satvikkhare1844 2 года назад

    Pointers on modern 64bit machines take 8bytes, on 16bit machines, they take 2 bytes. Kisi purani si book se padh ke bata diya. The explanation is very good. If any interviewer asks this and we can answer in this way. the job is gauranteed. Companies like qualcomm, nvidia and intel ask this question

  • @hari1134
    @hari1134 4 года назад +1

    Seriously very nice explanation madam 👍

  • @shiv_chintan
    @shiv_chintan 3 года назад +1

    thanku so much mam ,your explaining way is too good .

  • @bhashithaviduranga5027
    @bhashithaviduranga5027 2 года назад +1

    Thank you so much.... Excellent explanation

  • @sachindoddamani2304
    @sachindoddamani2304 4 года назад +1

    Very well explained maam. Thanks a lot

  • @asphere2875
    @asphere2875 4 года назад +2

    thank you for explaining this so well, you are the best!

  • @neerajjatwa2048
    @neerajjatwa2048 2 года назад +1

    Mam can you explain how to free the allocated memory for multidimensional array

  • @udaysharma138
    @udaysharma138 3 года назад +1

    Very well explained mam 👏

  • @vidyashreeks5869
    @vidyashreeks5869 4 года назад +1

    This the best explanation!!!

  • @mohanshetty4474
    @mohanshetty4474 2 года назад

    thank u so much for sharing ur valuable knowledge

  • @sharmistharuidas6876
    @sharmistharuidas6876 3 года назад

    Best explanation !

  • @edisonsantos8012
    @edisonsantos8012 4 года назад

    excellent explanation

  • @MGTOW-nn9ls
    @MGTOW-nn9ls 2 года назад

    Absolutely brilliant.Thank You .

  • @ayushmangore7045
    @ayushmangore7045 4 года назад +1

    Awesome mam

  • @bikashyadav1421
    @bikashyadav1421 4 года назад +1

    Very well said mam and
    Thank you very much

  • @mikehagerty9666
    @mikehagerty9666 4 года назад +1

    Thanks, that was "what ?" ... it was helpful. Thanks!
    However, I believe that printf("%d", p[i][j]) is *equivalent* to printf("%d", *(*(p+i) + j));

  • @abdelatif4002
    @abdelatif4002 3 года назад +1

    very informative thank you❤️❤️❤️

  • @shrikantpawar1142
    @shrikantpawar1142 3 года назад +1

    Thank you 🙏

  • @prashantprajapati172
    @prashantprajapati172 4 года назад +1

    Thanks mam it was really helpfull

  • @rohangupta.1
    @rohangupta.1 3 года назад

    PLEASE answer below question
    write a c program that create data structure that are larger than the amount of physical memory contained in their machine

  • @ayushmangore7045
    @ayushmangore7045 4 года назад

    Can you please tell me .... Which software you are using to explain

  • @kumarsandeep549
    @kumarsandeep549 4 года назад +1

    Nice video

  • @okaudi
    @okaudi 3 года назад

    Pointer should be 4bytes in x86 right? Why pointer in the example is 2bytes?

  • @yourjeedost9014
    @yourjeedost9014 4 года назад

    Hello! I wanted to know about how to free the dynamic array which is initialized in a function that has to return that array and then I want to free that initialized array.

  • @KRAVI2201
    @KRAVI2201 2 года назад

    Is here & there any video on call by reference in 2d array while size of that array is dynamically allocated?

  • @SUMIT0123M
    @SUMIT0123M 4 года назад +1

    Very helpful thanks :)

  • @rahuldicholkar2514
    @rahuldicholkar2514 3 года назад +1

    nice

  • @simplyishan06
    @simplyishan06 4 года назад

    What would be the code in case of using realloc as we need to increase or decrease the number of rows?

  • @fatimaelassi4864
    @fatimaelassi4864 2 года назад

    Big Thanks

  • @beaemanuela6869
    @beaemanuela6869 3 года назад

    MY problem is: Write a program that fills up the upper diagonal half with 0s; fills up the lower diagonal
    half with 1s; and fills up the middle diagonal with 2s of an M x M array. The following functions are expected in your program:
    • main
    • fillUp2DArray
    • display2DArray.
    how should i pass the dynamic allocation array as parameter since my program will be separated into different functions :(

    • @CodeSemantic
      @CodeSemantic  3 года назад

      Thanks for watching.
      Basically you have to pass the pointer i.e. 'p', according to the explained program in video
      Say your function name is 'fillUp2DArray'
      so function call will be fillUp2DArray(p)
      and while processing the array element use pointer notations

  • @rozinaaslam8074
    @rozinaaslam8074 2 года назад

    You can choose for one of the above gifts

  • @CanADarkElfSayTheGamerWord
    @CanADarkElfSayTheGamerWord 3 года назад

    How would you deallocate this?

    • @wejesuss-1104
      @wejesuss-1104 3 года назад

      use free(); function, first the elements in the column and just after de entire p, you allocated each p[i] with 2 bytes of int * col, so loop at it again in the final and use free on each of these, after this loop use free in the p;

  • @user-ks5xj1kn3m
    @user-ks5xj1kn3m 2 года назад

    the video image is too poor, you need to fix it more

  • @joygodipelly5933
    @joygodipelly5933 4 года назад +1

    ⭐⭐⭐⭐⭐

  • @naveenaacharya9547
    @naveenaacharya9547 4 года назад

    2200+1=2201.
    Not 2202🙄

    • @CodeSemantic
      @CodeSemantic  4 года назад

      'Pointer Arithmetic' depends on memory requirement of a datatype. Here we considered int datatype which acquires 2bytes (for 32 bit machine, in case of 64 bit machine it require 4 bytes), that i why 2200+1 = 2202, which means whenever you will add 1, 2 get added.
      This helps us to avoid extra coding, otherwise according to datatype requirement we have to perform increment operation.

  • @04.nehalsingh12
    @04.nehalsingh12 3 года назад +1

    thank you for explaining this so well, you are the best!