C_54 Two Dimensional(2D) Arrays in C | Initialization of 2D Arrays

Поділитися
Вставка
  • Опубліковано 3 жов 2024
  • In this lecture we will learn:
    How to initialize 2D Arrays in C
    C Programming Tutorials playlist: • Programming in C
    *********************************************
    Connect & Contact Me:
    Jenny's Lecture Hindi: / @jennyslectureshindi
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/...
    Instagram: / jayantikhatrilamba
    Twitter: / khatrijenny
    *******************************************
    More Playlists:
    Programming in C Tutorials: • Programming in C
    C++ Tutorials for beginners: • Lec 1: How to Install ...
    Printing Pattern in C: • Printing Pattern Progr...
    Best Python Tutorials for Beginners: • Python - Basic to Advance
    Placement Series: • Placements Series
    Data Structures and Algorithms: https: • Data Structures and Al...
    Design and Analysis of Algorithms(DAA): • Design and Analysis of...
    Dynamic Programming: • Dynamic Programming
    Operating Systems tutorials: // • Operating Systems
    DBMS Tutorials: • DBMS (Database Managem...
    #cprogramming #coding #codingexercises #program #clanguage #jennyslectures #arraysinc

КОМЕНТАРІ • 168

  • @amargautam909
    @amargautam909 3 роки тому +107

    Unlucky that I found this channel after my graduation but luckily I found it.
    You truly care about your students. You’re making a huge impact. Thanks JK 👨🏻‍💻

    • @tulas11
      @tulas11 Рік тому +1

      US moment 😪

  • @aparnamane4899
    @aparnamane4899 2 роки тому +154

    1st array 1D: 1 1 1
    2nd array 2D : 1 1 1
    2 0 0

    • @harshavardhan891
      @harshavardhan891 10 місяців тому +5

      But ig 2nd array would give error , won't it ??

    • @ft.nahiyan
      @ft.nahiyan 9 місяців тому +1

      @@harshavardhan891 i think so

    • @varadharlikar
      @varadharlikar 5 місяців тому

      1st array ka
      111
      000 ayega na?

    • @PolygonS-ro9db
      @PolygonS-ro9db 4 місяці тому

      @@harshavardhan891 how so?

    • @Purvesxh
      @Purvesxh 23 дні тому

      ​@@varadharlikar nhi kyuki 2nd row to initialize hi nahi he

  • @mahisinghvi2637
    @mahisinghvi2637 2 роки тому +41

    You're best teacher!
    I understand C programming only when YOU teach..thank you so very much for this🙏❤

  • @manshishukla6428
    @manshishukla6428 Рік тому +9

    Beauty with brain. . 😍😊😊😊 i am enjoying and understanding very clearly ....😍😍😍

  • @nasscim
    @nasscim 2 роки тому +26

    int a[ ][3] = {1,1,1};
    that is a 1 dimensional array
    row 0 : 1,1,1
    ------------------------------------------------
    int a[ ][3] = {1,1,1,2};
    that is a 2 dimentional array
    row 0 : 1 1 1
    row 1 : 2 0 0

    • @herohera3497
      @herohera3497 Рік тому +1

      in fist program i am getting 1,garbage,garbage as output in 2nd row ..why??

    • @pritpatel5953
      @pritpatel5953 Рік тому

      False

    • @Random-qg5ty
      @Random-qg5ty Рік тому

      @@herohera3497 becaz if u can't assign the values to row 2 it will give garbage value.

  • @Jayaguru-lr8pr
    @Jayaguru-lr8pr 10 місяців тому +13

    00:01 Initialization of 2D array in C
    02:03 Initialization of 2D arrays in C
    04:19 Two methods for initializing 2D arrays in C: using braces or matrix form.
    06:35 2D arrays in C can be initialized row by row
    08:55 Initialization of 2D Arrays in C
    11:14 Initialization of 2D Arrays in C
    13:28 Nested loops are used to initialize 2D arrays.
    15:40 Initializing a 2D array at runtime using nested loops
    Crafted by Merlin AI.

  • @vivekgajara8418
    @vivekgajara8418 3 роки тому +5

    Thank you mam aapki vaja se hi muje 2-D array declaration vagere kaa explanation Dena tha Meri mam ke saamne aur Mai aapki ki video dekhke Gaya tha aur mast pura present Kiya. Thanks mam

  • @tahasiddiq8823
    @tahasiddiq8823 Рік тому +2

    Best Teacher Ever.God Bless you Mam

  • @OnlyOne1Dee
    @OnlyOne1Dee Рік тому +1

    I love this lady, she's really the Best. Thank you Ma'am

  • @mdshaghillamaan6837
    @mdshaghillamaan6837 3 роки тому +83

    In case 1 it's 1d array
    And in second case it's 2d array
    2 d array values are
    R1. 111
    R2. 200

    • @Constantine808
      @Constantine808 3 роки тому +4

      Yes second row will automatically form. R2

    • @Pradeep-ko3jy
      @Pradeep-ko3jy 2 роки тому +1

      Answer is true but it is not 1d array it is 2d array with no 2nd row

    • @sumedhaasetlur742
      @sumedhaasetlur742 2 роки тому +5

      @@Pradeep-ko3jy IT IS 1D ARRAY ONLY. IF THERE'S ONLY ONE ROW WITH MULTIPLE COLUMNS IT IS CALLED 1D ARRAY.

  • @Mr.lucky_97_
    @Mr.lucky_97_ 8 місяців тому +1

    I love you mam ❤❤❤❤❤
    You explained it amazing
    I clearly understand this concept.

  • @vakhariyajay2224
    @vakhariyajay2224 2 роки тому +4

    Thank you very much. You are a genius.

  • @ritikpatil7946
    @ritikpatil7946 3 роки тому +4

    Mam, I really addicted to your channel. ❤️❤️❤️ Keep make such videos to inspire us .

  • @jeevaad6615
    @jeevaad6615 3 роки тому +15

    lecture starts at 1:47

    • @johnsumith2107
      @johnsumith2107 2 роки тому

      Thanku

    • @barood3253
      @barood3253 2 роки тому +1

      Pahle kyu nhi btaya maine Puri dekh li shit yaar,😅😅

  • @pikacoder5782
    @pikacoder5782 3 роки тому +47

    Do you need handwritten notes of mam every lecture?

  • @FIFAmobile71845
    @FIFAmobile71845 3 роки тому +3

    Mam tum hi to c language k top ho aurhamare hope ho
    Iam a bsc student thank for your lectures mam❤️

  • @thrillswithabhi
    @thrillswithabhi 3 роки тому +25

    Mam Me and my all colleague are following ur videos series since starting and our placement is very near so pls complete the DBMS course for we all....this will definitely help us a lots

  • @b.warron4631
    @b.warron4631 Рік тому +1

    Your eyes make me understand easily..

  • @bhuvanayerigeri1774
    @bhuvanayerigeri1774 2 роки тому +9

    in both cases 1D array
    1 1 1,becz row size is not initialized, so in both cases row size is taken as 1 by default

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 Рік тому +1

    Hi mam, I tried all the ways of compile time initialization, it works. thanks mam

  • @satyamtiwari5033
    @satyamtiwari5033 Рік тому +2

    Beautifully explained 🥰

  • @VishalKumar-yx5fk
    @VishalKumar-yx5fk 2 роки тому +2

    mam u are a great teacher.🤩🤩🤩🤩

  • @pramodsrivastava8544
    @pramodsrivastava8544 2 роки тому +1

    Thank you mam for explaining it simply and in detail.

  • @AbhijeetbhatYT
    @AbhijeetbhatYT 8 місяців тому

    jenny mam literally deserve lots of likes ❤

  • @ashishtayade047
    @ashishtayade047 10 місяців тому

    Thank you mam very nice gide & very nice best initialization two dimensional arrays teaching information video.👍

  • @saineeraj1326
    @saineeraj1326 3 роки тому +3

    11:56 it will be initialization like
    1,1,1
    It will give an error because,u didn't mension row size,by default it take row size as 1
    U are given 3 coloumn's ..it means it can store only 1,1,1

  • @mohanapriya7096
    @mohanapriya7096 2 роки тому +3

    fall in love with your learning mam.really amazing section

  • @SushindhAnandan
    @SushindhAnandan 8 місяців тому

    thank you for this amazing lecture mam

  • @muhsinali5182
    @muhsinali5182 3 роки тому +4

    Mam please do remove dublicate elements and print unique elements in array..

  • @mdshaghillamaan6837
    @mdshaghillamaan6837 3 роки тому +4

    Mam plz try to provide 2 classes daily

  • @pritamkumarpattanayak1497
    @pritamkumarpattanayak1497 Рік тому +5

    how to find the gratest number in array (1d) and 2(d)

  • @College72420
    @College72420 Рік тому +1

    love u mam😘😘😘😘

  • @iasaspirant1441
    @iasaspirant1441 3 роки тому +2

    Good explanation mam🙏🙏

  • @jitendrapratapsingh9189
    @jitendrapratapsingh9189 2 роки тому +7

    1st case = 1d arrays ;
    2nd case = 2d arrays

  • @rashmimishra1961
    @rashmimishra1961 3 роки тому +1

    Mam your lecture is too good♥️♥️

  • @sairampolisetty2059
    @sairampolisetty2059 3 роки тому +4

    Mam please complete full c language within 1 month by doing videos daily..
    Please mam.
    You are the best teacher in the world . 😁🙏🏻😂😁😭

  • @VENOM-zt2ql
    @VENOM-zt2ql 10 місяців тому

    Your eyes got my heart❤

  • @vishalG777
    @vishalG777 Рік тому +2

    10:12 if you will not initialise size it doesn't gives error, but how will you print the values of complete array using for loop.

  • @raghavaggarwal6248
    @raghavaggarwal6248 3 роки тому +4

    Mam is there any difference between structured programming and procedural programming or both are alternate names of each other? And please make a video lecture on programming paradigms please.

  • @kshitijkumar319
    @kshitijkumar319 Рік тому

    thankyou maam

  • @rakeshraj1866
    @rakeshraj1866 Рік тому

    Next level teaching mam❤

  • @izel_5
    @izel_5 Рік тому

    Thank you mam ❤

  • @akhilkhureshi3501
    @akhilkhureshi3501 2 роки тому

    Superb ✨verry helpful ✨

  • @vishalG777
    @vishalG777 Рік тому

    If we take an array and intialise it and give it some elements, it should take rest as 0 according to you but in VSC it's assigning an random garbage value.

  • @devyanipawar7713
    @devyanipawar7713 Рік тому

    Thank you mam

  • @EUU100
    @EUU100 2 роки тому +2

    1D array: 111
    2D array: 111
    200 aka, {1,1,1},{2,0,0}

  • @mohiturkude623
    @mohiturkude623 3 роки тому +3

    Mam you haven't discussed functions in C yet...

  • @RAHULKUMAR-cw3gq
    @RAHULKUMAR-cw3gq 3 роки тому +54

    Complete DBMS series placements are coming😭

    • @saineeraj1326
      @saineeraj1326 3 роки тому +16

      Yeah,in you tube their so many c playlist,but dbms video's are not their properly in you tube,in this tuff time,we need a great professor like u,ma'am please make it consist
      Love from India

    • @hariomt159
      @hariomt159 3 роки тому +2

      Bhai apni insta id dedo

    • @alostsoul9594
      @alostsoul9594 2 роки тому +2

      Mam pls pls complete DBMS playlist mam and OS too mam pls mam

    • @sweetyswathi435
      @sweetyswathi435 4 місяці тому

      @@alostsoul9594 I would suggest you to watch gate cse amit khurana lectures, he didnt digitalize his lectures but he teaches so deeply, after watching many UA-cam channels finally , I found him teaching so good so go through once if possible

    • @Failure17160
      @Failure17160 Місяць тому

      Dbms mtlb kya hota h bhaiya ??
      Abhi mene start hi kru h coding sikhana

  • @ramjimishra5511
    @ramjimishra5511 Рік тому

    Mam you are great👍👏👍👍👍👍

  • @akashprasad1911
    @akashprasad1911 2 роки тому

    Thanks .

  • @anujeetkunturkar780
    @anujeetkunturkar780 3 роки тому +2

    1:47 Lecture Started

  • @gameboy951
    @gameboy951 2 роки тому

    Tanxx mam

  • @Decent138
    @Decent138 2 роки тому

    mam u have said 1112
    in that case the answer is like this
    {111},
    {200};

  • @manavsingh373
    @manavsingh373 2 роки тому +3

    can we use ++i and ++j instead of using i++ and j++ for the loop variable update expression?

  • @akhilmittal3283
    @akhilmittal3283 2 роки тому

    you are so good mam

  • @vishalchaturvedi5280
    @vishalchaturvedi5280 3 роки тому

    Nice mam👍👍

  • @umeshjoshi1226
    @umeshjoshi1226 3 роки тому +1

    Mam ur lectures awesome 👏❤️

  • @HassainSaleem-vk7jn
    @HassainSaleem-vk7jn 5 місяців тому

    Hi mam you are so beautiful ♥️♥️ and gorgeous your voice is very good and you teaching the chapters is excellent and thank you for teaching

  • @rapakalokesh8449
    @rapakalokesh8449 Рік тому

    take care maam have a great day

  • @Busy_girl-mq2cf
    @Busy_girl-mq2cf 8 місяців тому

    10:24 mins
    the first assignment one dimensioanal array
    the second assignment two dimensional array

  • @monishj101
    @monishj101 Рік тому

    11:33 row 1

  • @swamulugaday4839
    @swamulugaday4839 3 роки тому +2

    I have sought for data structures and algorithms course I saw your video lecture in the playlist . is your lectures are sufficient for GATE exam aur not please reply ma'am 😐😕😑😢😒

  • @i.a.slearningandmotivation5324

    Mam pahali salary ap ko de de to bhi kam hoga . Sb samajh aa jata hai .❤. Me Aryan pandey 😊

  • @hymakaringula3645
    @hymakaringula3645 3 дні тому

    1st 1D 2nd 2D 3rd may be zero or garbage value.

  • @nandankumarkamti2450
    @nandankumarkamti2450 3 роки тому

    Mam. C language class continue rakheiye..

  • @Divakar9627
    @Divakar9627 Рік тому

    13:40 why you are i

    • @Divakar9627
      @Divakar9627 Рік тому

      😑mujhe mera answer mil gya so sorry

  • @nandhucharan5858
    @nandhucharan5858 3 роки тому

    Madam please upload bitmasking in c

  • @avengersgaming9997
    @avengersgaming9997 2 роки тому

    good mam why you not in our college for c language I am from Andhra pradesh

  • @thinkverse_of_sweety
    @thinkverse_of_sweety Рік тому +1

    int a[ ][3]={1,1,1,2};
    Then it will initialize as
    C1 C2 C3
    R1 1 1 1
    R2. 2 0 0

    • @rajaswadoijad243
      @rajaswadoijad243 9 місяців тому +1

      but here how would u know that rows are 2 only

    • @thinkverse_of_sweety
      @thinkverse_of_sweety 9 місяців тому +1

      @@rajaswadoijad243 Here though I have given column value 3. But I have initialized 4 values.. 3 values ​​out of 4 will go to 1st row..remaining 1 value will go directly to 2nd row..now 1 value in 2nd row is filled..but 2 values ​​are to be filled right, there will be 0 directly filled..After that there is no need to proceed because it has already filled in the initialized values

  • @santoshibora1892
    @santoshibora1892 2 роки тому +1

    At 5:59 *scary hands*🙄
    😂

  • @bhushangunjal5545
    @bhushangunjal5545 2 роки тому

    Output nahi print kiya mam.half portion hi understand huva please printf output also.

  • @rashmimishra1961
    @rashmimishra1961 3 роки тому +1

    Mam could you also teach us DSA using java, it will be very helpful

  • @subhashrowtu592
    @subhashrowtu592 3 роки тому

    After long 😘🥰

  • @shawez1444
    @shawez1444 Рік тому

    data will be initialised 111 in row 0 and 200 in row 1

  • @amitamishra231
    @amitamishra231 2 роки тому

    can we do this with the help of macros??

  • @priyakeerthikanna6010
    @priyakeerthikanna6010 Рік тому

    int size only 2 right but u told 4

  • @srideepthikovuru
    @srideepthikovuru Місяць тому

    Mam for a[ ] [3]={1,1,1};
    111
    for a[ ][3]={1,1,1,2}
    111
    200

  • @letlearnEnglish1356
    @letlearnEnglish1356 3 роки тому

    aap ke pass c ka paid courses he ???

  • @shorttechnicsaty2984
    @shorttechnicsaty2984 3 роки тому +1

    I don't know ma'am

  • @nobitagaming1519
    @nobitagaming1519 2 роки тому +1

    Can any one tell me that why we need two loop on 14:00 ?

    • @dkheart3474
      @dkheart3474 Рік тому

      Bcoz one loop for rows and another loop for columns...

  • @shashank_kishore_
    @shashank_kishore_ 16 днів тому

    ❤❤❤❤❤❤❤❤❤❤❤❤❤❤

  • @likhithdslikhithds
    @likhithdslikhithds 8 місяців тому

    i am dull in c program can u give imp question for 1 st 5 unit

  • @naveenganta4595
    @naveenganta4595 3 роки тому

    I love u mama

  • @samratsingh07
    @samratsingh07 3 роки тому

    mam but link for carnival festival is closed how we will join it

  • @PAPPUPRANATHI
    @PAPPUPRANATHI 2 місяці тому

    Mam I want output as : 1 2 3 4 5
    10 9 8 7 6
    11 12 13 14 15
    20 19 18 17 16
    21 22 23 24 25
    [5][5] matrix mam

  • @saisanthosh841
    @saisanthosh841 3 роки тому +1

    Please give notes madam.we can't write notes speedily

    • @sudha7524
      @sudha7524 3 роки тому +4

      You can pause the Vedio and you can write the notes🙂

    • @anshraj2196
      @anshraj2196 3 роки тому

      @@sudha7524 r u making notes like this as u said ??

    • @sudha7524
      @sudha7524 3 роки тому

      @Ansh Raj yes i making notes like as I said 😌

  • @treader3
    @treader3 2 роки тому

    Akka problem su madi

  • @Trips_vlogs
    @Trips_vlogs 2 роки тому +2

    Mam you are so beautiful

  • @upkaldka621
    @upkaldka621 Рік тому

    Answer is assignment is 111
    200

  • @digcreators
    @digcreators 3 роки тому +1

    U looking beautiful ❤️❤️❤️

  • @Bangtan00748
    @Bangtan00748 7 місяців тому

    10:34 doubt

  • @sanjanapanwar3844
    @sanjanapanwar3844 3 роки тому +1

    First comment ❤❤

  • @ragnar357
    @ragnar357 3 роки тому

    ❤🙏

  • @shorttechnicsaty2984
    @shorttechnicsaty2984 3 роки тому +1

    Ma'am I focus on video not comment

  • @atchayau3490
    @atchayau3490 3 роки тому +1

    a[][3]={1, 1,1 } for this ans is 1 1 1 and a[][3]={1, 1,1,2} for this ans is 1st row is 1 1 1 . 2nd row is 2,0,0 . Mam plz tell the ans is correct Or not.!

  • @RohitKumar-zt8lw
    @RohitKumar-zt8lw 3 роки тому

    👍🏼🙏

  • @OmkarChinna-zz7sv
    @OmkarChinna-zz7sv 8 місяців тому

    Madam.. Tell Me loops Madam

  • @samarsarkar9287
    @samarsarkar9287 2 роки тому

    R1 111
    R2 200

  • @treader3
    @treader3 2 роки тому

    Please🙏🙏🙏

  • @cosmasbore6454
    @cosmasbore6454 2 роки тому

    Married?