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.
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.
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
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
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.
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 :(
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
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;
'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.
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.
You wrote what I was about to!
excellent madam your teaching style is very unique,
Thanks a lot
Best explanation I've found
Glad you think so!
Such a golden content
this is the best explanation of this topic on the youtube,keep posting mam
Thank you for watching. I will try my best
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.
BEST VIDEO ON DMA OF 2D ARRAY!!!!!
I really appreciate your work mam. thank you, I understand very clearly.
Glad to hear that
Thank you so much madam, you are an angel. You solved my crucial doubt.
Most welcome 😊
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
Seriously very nice explanation madam 👍
thanku so much mam ,your explaining way is too good .
Most welcome 😊
Thank you so much.... Excellent explanation
You are welcome!
Very well explained maam. Thanks a lot
thank you for explaining this so well, you are the best!
Mam can you explain how to free the allocated memory for multidimensional array
Very well explained mam 👏
Glad you liked it
This the best explanation!!!
thank u so much for sharing ur valuable knowledge
Best explanation !
Glad you liked it
excellent explanation
Absolutely brilliant.Thank You .
Awesome mam
Very well said mam and
Thank you very much
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));
very informative thank you❤️❤️❤️
Thank you 🙏
Thanks mam it was really helpfull
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
Can you please tell me .... Which software you are using to explain
Nice video
Pointer should be 4bytes in x86 right? Why pointer in the example is 2bytes?
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.
Is here & there any video on call by reference in 2d array while size of that array is dynamically allocated?
Very helpful thanks :)
nice
What would be the code in case of using realloc as we need to increase or decrease the number of rows?
Big Thanks
Welcome!
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 :(
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
You can choose for one of the above gifts
How would you deallocate this?
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;
the video image is too poor, you need to fix it more
⭐⭐⭐⭐⭐
2200+1=2201.
Not 2202🙄
'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.
thank you for explaining this so well, you are the best!
You are so welcome!