Тёмный

#20 C Multidimensional Arrays | C Programming For Beginners 

Programiz
Подписаться 172 тыс.
Просмотров 113 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 199   
@programizstudios
@programizstudios 2 года назад
🔥Finding it Damn Hard to Understand C Programming? Learn to code-the right way-with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT! Try Programiz PRO for Free: bit.ly/master-c-programming
@cukcuk6489
@cukcuk6489 6 месяцев назад
Well in the quiz,,, u cant create int arr[1][4]={{3,6,9,12}, {2,4,6,8}}; because in arr should be [2][4], so if it would be coded like this, and you will print out arr[1][4], it will choose the second row so {2,4,6,8} but it will print a random number :) @programizstudios
@ashutoshm.5920
@ashutoshm.5920 2 года назад
Random value is the answer coz there are only 4 elements in the second inner array , and indexes start from 0 , so 4th index number does not exist .
@ethanflorko496
@ethanflorko496 Год назад
Gj
@AnushasitCoder
@AnushasitCoder 8 месяцев назад
actually the answer is 0 and not random value...random value is generated when extra spaces are available and youre trying to print them....eg...youre given 5 index space to the array and only 2 are filled...then if u try to access the 4th index...u get random value...in this case it is different...
@juliotitosagastegui9453
@juliotitosagastegui9453 7 месяцев назад
@@AnushasitCoderu get a random value, check the ans in their website
@JoseCarv0
@JoseCarv0 6 месяцев назад
You are correct (answer: random).
@bekmirzo_berdimurodov
@bekmirzo_berdimurodov 5 месяцев назад
The answer is 0, i did it for myself...
@programizstudios
@programizstudios 2 года назад
Timestamps: 00:00 Start 00:20 C Multidimensional Arrays 00:39 Declaration multidimensional array 01:17 Initialization of multidimensional array 02:49 Access Array Elements 04:57 Change Array Indexes 06:56 Multidimensional Array and for loop 10:14 Quiz
@KamalPoudel-h1f
@KamalPoudel-h1f 7 месяцев назад
Love you from Nepal. Full support for our best team in Nepal 🇳🇵 .
@anthonyatienza3363
@anthonyatienza3363 Год назад
This is helping me with collage. thank you a ton.
@KELVINWAINAINA-hs7wq
@KELVINWAINAINA-hs7wq 5 месяцев назад
These videos have been the best if you want to understand C programming concepts quickly
@programizstudios
@programizstudios 2 года назад
Q. Which value will we get when we print arr[1][4] from the following array? int arr[1][4] = { {3, 6, 9, 12}, {2, 4, 6, 8} }; A.12 B. 8 C. 0 D. Random Value
@thisistusharmahajan
@thisistusharmahajan 2 года назад
Random value
@thisistusharmahajan
@thisistusharmahajan 2 года назад
No Programming Task for this lecture.🙄🙄
@haidang4love
@haidang4love 2 года назад
C Because if you count 0, the 4th element does not exist.
@renuga.k7473
@renuga.k7473 2 года назад
D.Random value
@jayminpanchal6442
@jayminpanchal6442 2 года назад
Random value
@gopalbathula1327
@gopalbathula1327 2 года назад
Love you mam. I started following your classes, but upload the next video as soon as possible.
@jeffersonmaingi
@jeffersonmaingi 3 месяца назад
Nice teacher for the Quiz, Random Value is printed. Thanks for sharing
@jip1521
@jip1521 Год назад
most straightforward explanation .
@umac287
@umac287 10 месяцев назад
Queeze answer is d - random value
@nanimg3512
@nanimg3512 2 года назад
Tq ...plz continue the videos we are waiting for more of c programming
@siddharthabandyopadhyay5964
@siddharthabandyopadhyay5964 2 года назад
Random value will be printed as arr[1][4] doesn't exist..array index out of bounds
@denkyitehillah7449
@denkyitehillah7449 2 месяца назад
The code #include int main() { int marks[5]; int sum=0; int average; printf("Enter the 5 marks: "); for (int i=0; i
@internethippo-p3q
@internethippo-p3q 2 месяца назад
Random value the matrix is of order 2*4 that doesn't appear in the array
@user-nt4nm4fb3u
@user-nt4nm4fb3u 8 месяцев назад
Clean explanation as always! Thank you very much...
@jackyjaii2154
@jackyjaii2154 Год назад
it is error right? becuz it should be int arr[2],[4]???? make me so confused ,the answer is zero , random or error???
@sibinp17
@sibinp17 Год назад
Option D, But the truth is we don’t even get a random value as arr[1][4] does not exist
@vishakanr1478
@vishakanr1478 2 года назад
option D .......as to have array with index 4 the declared array must be arr[1][5] but the declared array isnt
@amayaamarasinghe5838
@amayaamarasinghe5838 Год назад
Your videos are super clear & helpful!! Thank you!!
@programizstudios
@programizstudios Год назад
Glad you like them!
@abbeyziraba2967
@abbeyziraba2967 7 месяцев назад
D. Random Value
@has2236
@has2236 Год назад
Answer: D This is because [4] is out of range for arr[1], so it will give a random number.
@kareemtawfik2886
@kareemtawfik2886 10 месяцев назад
D. Random Value
@gdkenzo
@gdkenzo Год назад
The correct answer is D. The array was initialized as "arr[1][4]" which is incorrect, it should be "arr[2][4]". This causes only the first array to be recognized by the program, so when we try to print "arr[1][4]" (which should be "arr[2][4]" if the array was initialized properly) the value does not exist, therefore a random value will be printed.
@MG-dj7kf
@MG-dj7kf Год назад
Thank you!
@mosopefoluwaadebawojo3543
@mosopefoluwaadebawojo3543 2 года назад
I love your videos. They're so easy to understand. Thank you so much
@prithviraj627
@prithviraj627 2 года назад
focus on what she is trying to teach.
@AaravMakan
@AaravMakan 2 года назад
@@prithviraj627 😅
@alanizaguirre4670
@alanizaguirre4670 Год назад
& it prints "CHEERIO" LMAOO 🤣🤣🤣🤣🤣
@yrroszage870
@yrroszage870 2 года назад
This is great tutorial it helps me alot
@IphOne-kb3bj
@IphOne-kb3bj Год назад
12
@TemesgenAlemu-b7w
@TemesgenAlemu-b7w 2 месяца назад
The correct answer is C since int the second array, we don't have fourth element which in this case it is assumed to be 0.
@proxycomandos
@proxycomandos 12 дней назад
i just compile this program and it waas eror for too many initializers
@fredambrose
@fredambrose 3 дня назад
Can you teach me to program the Chicken Marsalla?
@muznahhussain1321
@muznahhussain1321 2 года назад
I am started to follow this series but I don't know how will it benefit me in practical life
@onic9623
@onic9623 Год назад
Option D : Random Value
@tafsirnahian669
@tafsirnahian669 Год назад
Her voice is really soothing.
@BERNABELAGUMBAY
@BERNABELAGUMBAY 6 месяцев назад
The answer is 0, because not exist automatic tjr answer is 0
@collinshagembe7852
@collinshagembe7852 Год назад
At first i thouhght the answer was B(8), I then realised that int arr [1][4] is not present in the array elements we have been provided with. [1][4] in this case means that there's only one array with 4 elements in the array . However the numbers displayed {3, 6, 9, 12} , {2, 4, 6, 8} represents two arrays with each having 4 elements, hence the proper representations should be int arr[2][4] = {3, 6, 9, 12} , {2, 4, 6, 8} . hence for the quiz provided you will get 0 example #include int main(){ int arr[2][4] = {{3, 6, 9, 12} , {2, 4, 6, 8}}; //two arrays with 4 elements in each array// printf("%d ",arr[1][3]); // [0 1 - one is second i.e second array], [0 1 2 3 - 3 is fourth] hence the command asks us to print the fouth element of the second array// return 0; } The output is 8
@canhtranhLuat
@canhtranhLuat Год назад
You're wrong
@collinshagembe7852
@collinshagembe7852 Год назад
@@canhtranhLuat the answer is zero mate. Am sure you didn't read the whole comment..i said at first i thought the answer was 8, but after working it out..i.realized it's 0
@canhtranhLuat
@canhtranhLuat Год назад
@@collinshagembe7852 no, the correct ans is Random value
@TemesgenAlemu-b7w
@TemesgenAlemu-b7w 2 месяца назад
@@canhtranhLuat I think, the answer is 0. She was explaining this issue while she was teaching about arrays. Go and check my friend.
@nihatdonmzov4166
@nihatdonmzov4166 Год назад
Thank you so much, Madam
@nihatdonmzov4166
@nihatdonmzov4166 Год назад
The answer of the quiz is 0;
@sibonginkosiphiri6269
@sibonginkosiphiri6269 11 месяцев назад
#include int main() { int arr[1][4]={{3,6,9,12},{2,4,6,8}}; for (int i=0; i
@dcpowered
@dcpowered 20 дней назад
Big like from me! I discovered your website looking for code snippets. Your channel is fantastic for a C beginner!
@thiagaodavez5465
@thiagaodavez5465 Год назад
z
@balashebjadhav977
@balashebjadhav977 Год назад
Answer is D)
@thulasizwephetha8211
@thulasizwephetha8211 2 года назад
//Which value will we get when we print arr[1][4] from the following array? int arr[1][4] = { {3, 6, 9, 12}, {2, 4, 6, 8} } #include int main() { int arr[2][4] = {{3, 6, 9, 12}, {2, 4, 6, 8}}; for(int i=0; i
@harshadatapre2133
@harshadatapre2133 2 года назад
4. Ramdom Value
@crazy_me00
@crazy_me00 3 месяца назад
isn't the app available for systems?
@teju_vasuchannel2080
@teju_vasuchannel2080 11 месяцев назад
The answer to the quiz is option 'D',Random value
@SavarahMarian
@SavarahMarian 5 месяцев назад
Quiz answer should be a random value
@InsaneMedusa
@InsaneMedusa Год назад
A. 12 is the answer, cant imagine so many people in the comment going berserk over this simple question.
@jackyjaii2154
@jackyjaii2154 Год назад
bro watch the video again
@jackyjaii2154
@jackyjaii2154 Год назад
12 is [0], [3] btw
@GATE318
@GATE318 2 года назад
😲😲
@bilecode8114
@bilecode8114 2 года назад
the Answer is C:=0
@akashmeesarapu6438
@akashmeesarapu6438 Год назад
You're just amazing mam Nice teaching
@pulkitgupta8344
@pulkitgupta8344 Год назад
This quiz is wrong, it will give an error. Please respond if I am right.
@Abhisheksingh-ep2gu
@Abhisheksingh-ep2gu Год назад
maam the answer will be zeero{0},as it can read upto [1][3],if i am wrong plz let me know.
@xxxegster6527
@xxxegster6527 11 месяцев назад
the answer of quiz is b,8
@gazalaperween9602
@gazalaperween9602 2 года назад
D is answer.
@AM-yd8en
@AM-yd8en 11 месяцев назад
10:22 the answer is D, Right?
@saisunkara1696
@saisunkara1696 Год назад
in the above array the size is exceeded because the actual size is arr[1][3] so the the above array pics the value zero because if the array[1][4] has no value to pick by default it will pick zero
@zuko8023
@zuko8023 4 месяца назад
answer is D
@acemaster65
@acemaster65 Год назад
good to watch and easy to learn tq
@suvrojit2004
@suvrojit2004 10 месяцев назад
Random value will be the ans for the last question
@yogithabale
@yogithabale 3 месяца назад
opt 4 , random value
@avdeshsingh001
@avdeshsingh001 Год назад
Random value
@sujeetkumar03
@sujeetkumar03 2 года назад
Random value
@soumadeepdas7610
@soumadeepdas7610 2 года назад
option.8
@thesun___
@thesun___ Год назад
thanks bro
@movietime7062
@movietime7062 Год назад
Answer is randome value
@danieldaniekl6222
@danieldaniekl6222 3 дня назад
bruh ur so pretty
@bibeklimbu-nt4ff
@bibeklimbu-nt4ff 5 месяцев назад
maybe random value
@KpopRumbleAlliance
@KpopRumbleAlliance 5 месяцев назад
random value
@TheHeraldOfSpring
@TheHeraldOfSpring 2 месяца назад
#include int main(){ double arOfAr[3][5]; printf("Now we will create an array of arrays ! "); for (int p = 0; p < 3; p++){ int count1 = p + 1; for (int d = 0; d < 5; d++){ int count2 = d + 1; printf("Enter your '%d' value of your '%d' array: ", count2, count1); scanf("%lf", &arOfAr[p][d]); } } printf("The values you have chosen are: "); for (int p = 0; p < 3; p++){ for (int d = 0; d < 5; d++){ printf("%lf ", arOfAr[p][d]); } } return 0; }
@musaffarmp
@musaffarmp Год назад
A2
@thecyber465
@thecyber465 2 года назад
Is D correct answer?
@adityad8929
@adityad8929 Год назад
Quiz answer is Random Value
@fighterboy6577
@fighterboy6577 2 года назад
8
@ladyadda
@ladyadda Год назад
A
@gamerkim1912
@gamerkim1912 2 года назад
12 is the correct answer
@shahmeerakbar2045
@shahmeerakbar2045 2 года назад
Please slove syntax program iam watch you video
@RATANAGARWALITINFORMER
@RATANAGARWALITINFORMER 2 года назад
nice
@emmanuels.k.dekpah
@emmanuels.k.dekpah Год назад
please send me the link for the certificate program.
@tasagrobar95
@tasagrobar95 Год назад
djero
@Sanidu123
@Sanidu123 2 месяца назад
thanks
@Indhu3690
@Indhu3690 Месяц назад
Opt B
@sandeepvarma8453
@sandeepvarma8453 5 месяцев назад
c.0
@CyrusCyrus-ko9iy
@CyrusCyrus-ko9iy 4 месяца назад
C
@dnwint2
@dnwint2 5 месяцев назад
D
@JOSEPHMUKAMA-v3b
@JOSEPHMUKAMA-v3b 11 месяцев назад
B.8
@aburayhansushmoy110
@aburayhansushmoy110 2 года назад
Loving the videos
@Fuantoni
@Fuantoni Год назад
D
@barkhadibraahim1023
@barkhadibraahim1023 Год назад
#include int main() { // Write C code here int arr[1][4] = { {3, 6, 9, 12}, {2, 4, 6, 8} }; printf("%d", arr [1] [4]); return 0; } answer is = 0
@mixednarrator
@mixednarrator Год назад
B
@onihasan2576
@onihasan2576 Год назад
Random value as only 1 array is declared so the 2nd array will hold 4 random number
@gazalaperween9602
@gazalaperween9602 2 года назад
D is answer.
@missorangeee2304
@missorangeee2304 Год назад
8
@yousifmerza5578
@yousifmerza5578 Год назад
Do you have a personal Chanel please?
@yigitcamas229
@yigitcamas229 Год назад
beton yetmez beton
@buissondecsm7879
@buissondecsm7879 2 года назад
Hello programmiz I suggest you make a postgreSQL series
@deerajdeeru3198
@deerajdeeru3198 3 месяца назад
8
@muhammadrizobegijonov4002
@muhammadrizobegijonov4002 5 месяцев назад
0
@UchihaMadara00644
@UchihaMadara00644 7 месяцев назад
8
@parthwairagade5819
@parthwairagade5819 9 месяцев назад
8
Далее
#21 C Strings | C Programming For Beginners
10:13
Просмотров 135 тыс.
Coding Was HARD Until I Learned These 5 Things...
8:34
C_53 Introduction to Two Dimensional (2D) Arrays in C
13:04
#19 C Arrays | C Programming For Beginners
13:27
Просмотров 250 тыс.
C Programming Tutorial 84 - Multidimensional Arrays
5:10
#23 C Pointers | C Programming For Beginners
11:01
Просмотров 135 тыс.
Array Basics | C Programming Tutorial
13:37
Просмотров 37 тыс.
Introduction to Two-Dimensional (2D) Arrays
10:20
Просмотров 695 тыс.