C Programming Tutorial # 36 - Passing 2-Dimensional Arrays to Functions [HD]

preview_player
Показать описание
In this tutorial we learn how to pass 2-dimensional arrays to functions and how to call such functions.

This tutorial is part of the following series:
Рекомендации по теме
Комментарии
Автор

Can I just pass the argument as a pointer (implicit pointer) and receive it in a explicit pointer?

And increment the explicit pointer and add the values.

And return the result.

RamyaNarendran
Автор

Thank you again for the clear explanation. Your tutorial videos are really helping me a lot to prepare for my mid-term exam. Thanks again, and regards ....

conland
Автор

@ajayparmar904 in the previous tutorial he said that 2d in memory is actually in 1D since its simple a number of 0s and 1s. Every piece of the memory in accordance to the 2D array is subsequent by the rows of the 2D array. So in the memory the compiler will know that after 3bytes the next row begins. Am I right @Lernorama ?

Alexandrosth
Автор

Thanks. NIce quick tutorial solving an issue I had been stuck on for awhile.

thaucufume
Автор

hey dude !i am not sure that i am true or not but shouldn't it make kind a column with row in function definition ??

niyazgylych
Автор

Took along time for me to find something like this thank very much idian dude!

predatorBr
Автор

thank you. very helpful. but how do you pass a specific row to the function?

cesarsuarez
Автор

what about 2 dimensions with mulloc? would be useful to have some examples! Thanks!

GeorgePapageorgakis
Автор

Thank you so much for all this its better than class!

Alexandrosth
Автор

very nice tutorial.. ive watched 5 of your vids already..

matthw
Автор

um i got a warning like this.. expected int[*][4] nut the argument is of type int[3][4]
and then segmentation fault while executing the program at the line sum+=a[row][column]
please help me..

MrMmmmms
Автор

but what if you cant put 4 in the column size and you need to pass the size of any array

aries
Автор

Great video... Simple & easy explaination

shujaatmcse
Автор

How do you find the max square (2 x 2) in a 2 d array with all random values?

tenaciousftb
Автор

I thought this was good I kept getting an error about sending to many arguments not realizing from the book that passing an array you do not have to pass the first sub just the second you cleared that up for me thank you

peggydavis
Автор

Sir i want 2 watch your all tutorials related to c.. then plzz tell me how could i?

ankitshukla
Автор

Thank you very much. It's very helpful

anmar
Автор

if i want that myarray to be passed dynamically then what to do like i have myarray[n][n] and this n i want to pass in the method then wat to do ?

mubasshirwangde
Автор

the reason why it is int return type because it is returning sum here not because the array elements are integer in nature

aritra-
Автор

Thank you sir! this is very very helpful!!

robgur
visit shbcf.ru