3-Dimensional Arrays in C | Sanfoundry

preview_player
Показать описание
In the "3-Dimensional Arrays in C" video, we are going to learn about 3-dimensional arrays and how to declare, define and initialize a 3-dimensional array. We will discuss good programming practices for 3D array initialization, followed by an understanding of the memory representation of an array in 3 dimensions. We will solve a tricky problem on a 3D array and learn the importance of the arrangement of array elements in memory, followed by a live demo and a detailed explanation.

Advanced C Programming Training Course

1. Advanced C Programming Videos (English Playlist):

2. Advanced C Programming Videos (Hindi Playlist):

3. Advanced C Programming Tutorial Video Series:

4. C Interview Questions Video Series:

5. 1000 MCQs (Multiple Choice Questions) on C programming:

6. Ultimate C Programs Collection (with Data-Structures + Algorithms):

#AdvancedCTutorial #CTutorial #CProgramming #ManishBhojasia #Sanfoundry
Рекомендации по теме
Комментарии
Автор

Thank you for your videos Sir. Your content is of very high quality, and helped me a lot in refreshing on the fundamentals.

Iamine
Автор

Nice, I missed the second question. boundaries in C is problematic until you get used to it. Thanks Manish.

nullzero
Автор

Sir you helped me a lot to understand c in depth ! .... Now I am waiting for pointers ?

When will pointer series release ! Eagerly waiting ...

sanmeetsingh
Автор

Thankyou sir both website and YouTube channel of Sanfoundry are helping me a lot. I got a question about 3 dimensional array can you tell me where it is used usually.

chaitanyak
Автор

I just tried to run a code snippet with extra pair of brackets and found that the data storage is changing

1.
int arr2[][3][2] = { {11, 12, 13, 14, 15, 16}, {21, 22, 23, 24, 25, 26},
{31, 32, 33, 34, 35, 36}, {41, 42, 43, 44, 45, 46}};
printf("arr2[3][0][0]: %d\n", arr2[3][0][0]);

output: arr2[3][0][0]: 41

2. Added extra pair of {}

int arr2[][3][2] = { {{11, 12, 13, 14, 15, 16}, {21, 22, 23, 24, 25, 26},
{31, 32, 33, 34, 35, 36}, {41, 42, 43, 44, 45, 46}}};
printf("arr2[3][0][0]: %d\n", arr2[3][0][0]);

output: arr2[3][0][0]: 11

surajjadhav
Автор

Sir how can I give test on sanfoundry for get certificate. please tell me .

rohinisingh
Автор

Is there any online training clases available for linux programming ?

sravs
Автор

Hello sir .In sanfoundry (online website).there is not complete updation of java questions n answer.. (100 basic Java program)
I really want to learn this.but not updated.please upload .it will be very helpful for us

Parvezvlogs
Автор

Sir, plzz upload video on string advance sir 🙏🙏

brijesh
Автор

I am starting to dislike C compiler. It simply shifts most of its responsibilities on to the coder's shoulder

rkingham