C_61 C program for Matrix Multiplication part2 | C Language Tutorials

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 330

  • @bhumikasharma5591
    @bhumikasharma5591 3 роки тому +76

    Thanks a lot ma'am. I was having so much difficulty in understanding that why do we need to take k variable but u explained it so well. Thank you so much ma'am.

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

      @@bhumikasharma5591 kth wala hi dikt de raha hai

  • @lovebajwa25
    @lovebajwa25 3 роки тому +283

    I was struggling with why do we take 'k' variable. You have illustrated every single thing very beautifully. Even the way you have described the purpose of each variable....hats off. Thank you so much.

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

      Same here really (Thank you Mam very very much) You teach us very clearly. THANK YOU

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

      why we use #define 50 as a header//? i didn't get that consept plz reply.....??

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

      @@Aman_sharma_uk please reply if anyone knows this

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

      @@Aman_sharma_uk it's initiate N=50 throughout the source code., so for example int a[N][N] so it means int a[50][50] int b[50][50] and so on, as long as there is a N, it's initiate automatically to 50
      cmiiw

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

      for the same k varaiabke

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

    Pehle mujhe programming krne Mai bhot problem hoti thy phir ek din Mausi ne bataya ke Jenny mam ke lectures Dekh lo, ab Mai programming accche se kr pata hun..
    Thanks mam.. lots of love from my side.. stay safe & happy

  • @villian07A
    @villian07A Рік тому +8

    I think in program third loop :-
    for(k=0;k

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

    BASICALLY THEIR IS A MISTAKE IN THE CODE OF THE MATRIX THE K LOOP SHOULD BE WRITTEN (K

  • @todoroki4859
    @todoroki4859 2 роки тому +16

    You are the best teacher may God bless you with best job and comfortable life

  • @DonARTello250
    @DonARTello250 3 роки тому +77

    I cant believe I've understood the 3rd variable k 😂😂
    To those struggling with it..
    Assume k is just a number position.
    K is common because it means
    (1st row A element)×(1st colum B element)
    (2nd row A element)×(2nd column B element)
    (3rd row A element)×(3rd column B element)
    K simply stands for 1st, 2nd and 3rd which have to be the same for row of A and column of B.

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

    Thanks Ma'am your lecture is way more easy than the lectures got from my college.

  • @--NoOneJustMe
    @--NoOneJustMe Рік тому +6

    i think there is a mistake in your program which is third loop's condition. because the condition must be k < n instead of k < m it works only when the 1st Matrix is in square Matrix because of the value m = n, for example if the 1st matrix will be 2×3 then the multiplication part will give an error or wrong answer

    • @ayushmanyashaswi4715
      @ayushmanyashaswi4715 3 місяці тому

      Yep...as condition is that n==p.....and matrix will be of m x q

  • @uditpanjiyar3203
    @uditpanjiyar3203 2 роки тому +8

    i found this concept very confusing everywhere but after watching your video 2 times , it will become buttry smooth 🙏🙏🙏

  • @mukeshpyla4064
    @mukeshpyla4064 Рік тому +4

    In the program, you have mentioned "k

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

    Mam k< n or k

  • @javierv.5242
    @javierv.5242 2 роки тому +12

    Jenny ma'am. I started your lectures maybe back in September 2022 and I'm here now. I've watched every video in order and an continuing until the end by the grace of God. I studied linear algebra in college so this was a good lecture which incorporated a C program and matrices. Thank you so much!

  • @skywa1ke7.a
    @skywa1ke7.a Рік тому +3

    // There is a correction K will be less than n or p.
    // If u will do K

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

    in for loop for k condition could be either k

  • @maheshbathini8337
    @maheshbathini8337 3 роки тому +23

    Mam if we take 4 cols in first matrix then k

    • @AMANSINGH-zu4ry
      @AMANSINGH-zu4ry 3 роки тому

      Hmm

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

      Actually I was also thinking that 🙄

    • @ADITYASINGH-no6ko
      @ADITYASINGH-no6ko 2 роки тому

      exactly

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

      !!!Data Structures & Algorithms on free now!!!
      Program for Multiplication of Matrices i.e. multiplication of two 2D array
      ua-cam.com/video/5m0jputa9CQ/v-deo.html

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

      @NeUtRiNO x GaMiNg mam said k should be less than number of coloums of first or rows of second matrix so why is she taking k < m

  • @BushraWani-bb1kz
    @BushraWani-bb1kz 9 місяців тому +1

    Thank you ma'am for this amazing session.

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

    Mam's code is running because mam has taken m=3,n=3,and p=3....so the output is coming even if she is taking k

  • @TravelWithMe-NP
    @TravelWithMe-NP 2 роки тому +14

    How can learning of c programming be so easy ? Hat's off to you❤️👏!

  • @javierv.5242
    @javierv.5242 2 роки тому +10

    20:05 typo. K loop should be k

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

    literally mam i have no words how can i thank you on monday i have a programming paper and i am preparing from your lecture i hope i will do my best my programing is not good but just bcz of your lectures i am gaining so much knowledge thank you so much mam god bless you mam from pakistan

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

    Heaven! Mam,i was for real mourning to decipher this,u have elucidated every nitty griity detail so exquisitely!!! Tons of thanks! Love from Hyderabad ❤

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

    Mam you are spreading such a positive aura. I am blessed for getting a teacher like u.

  • @ayushmanyashaswi4715
    @ayushmanyashaswi4715 3 місяці тому

    At last....i understood 😌
    That explanation on board was superbbb!!!!

  • @UdaykumarKUday-yd9ut
    @UdaykumarKUday-yd9ut 2 роки тому +3

    Hello mam, I found mistake in your program. That is in 59 statement k

  • @shashwatroy3849
    @shashwatroy3849 Рік тому +4

    Beautifully explained 😍
    Was struggling with this for a couple of hours
    Subscribed ❤️

  • @kamashettymanoj6985
    @kamashettymanoj6985 3 місяці тому +3

    you are my god sometimes while doubts in programme

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

    Thank you miss Jenny. I understood fully why we need to use the variable k now in our matrix multiplication code :)

  • @RakshanaM-i1c
    @RakshanaM-i1c Місяць тому

    The way you taught, made my coding easy mam thank you.

  • @DhanaLakshmi-sy1yo
    @DhanaLakshmi-sy1yo 3 роки тому +5

    Thanks a lot sis...after long struggle I was hpy now after seeing this video...I understood ❤️❤️❤️

  • @VersaKumari-vu4ly
    @VersaKumari-vu4ly Рік тому +3

    this was very confusing for me i have watches lots of video but after watching this my concept is clear. thank you😊

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

    Thank you so much, u are the best for explaining hard things until it becomes so clear and easy 🌹🌹🌹

  • @burlisaitharunnitap6293
    @burlisaitharunnitap6293 3 роки тому +7

    Mam in line 59 ,it would be k

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

    Madam ke ek hi lecture me samajh gaya.. nahi toh pura utube idhar udhar kar diya tha 👍

  • @AkshayKumar-fb2qw
    @AkshayKumar-fb2qw 2 роки тому +4

    You are Great Mam❣️Before this, That question was to be impossible to solve for me but You cleared my all the doubts involved in this particular question, Thanks a Bunch Mam❣️

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

    Mam you teach deeep due to which we can easily learn everything about the concept I struggle many more to find the teacher like u on UA-cam there are many vedio in which concept are clear by a short vedio and never explain everything

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

    16:21 😍 that smile...

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

    Excellent explanation, all my doubts get cleared watching this video

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

    Best possible explanation, especially why do we need k variable.
    Thank you Didi ❤

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

    Thank you so much ma'am. Watching from Bangladesh as a 1st year CS student

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

    Mam ur teaching is next level no words to describe ur explanation

  • @ArshaqMuhammed-be9jh
    @ArshaqMuhammed-be9jh 8 місяців тому

    What an Amazing Teacher you are...🙌🙌🙌

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

    Thanks ma'am for clearing our doubts love the way you teaching

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

    Great!! Finally got to know how matrix multiplication works.

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

    Hi mam..in k loop we have to write k

  • @udaysankar9
    @udaysankar9 11 місяців тому

    i am very lucky to born in your generation🥲...tomorrow we have lab , today i got clarity about the concept😄....thank you so much mam...i am thankfull to you

  • @Dineshkrish4985
    @Dineshkrish4985 5 місяців тому +1

    Your teaching is nice❤❤

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

    thankyou mam, the k variable concept became very easy with your teaching💗

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

    20.6
    there is a mistake
    range of k is k

    • @Vivek-df4rz
      @Vivek-df4rz 2 роки тому

      bhai mam ko nhi dekhte ho ky pdhte rhte ho bs

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

    Thank you madam
    Now I feel very relief.
    A lot of stress is gone
    And ur so beautiful ❤️
    Love madam with my heart

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

    Kya kamaal ki teacher ho
    Your eyes speaks even before you speak 🙊

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

      Teacher ki izzat karna seekhle, g@ndu,

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

    k should be less than n (k

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

      Exactly Yrr that’s what I am thinking k< n or P

    • @ayushmanyashaswi4715
      @ayushmanyashaswi4715 3 місяці тому

      Yep...as condition is that n==p.....and matrix will be of m x q

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

    Thank you from the deepest part of my soul madam, because of your knowledge and your guidence, I shall rejoice in my way into the abyss that we know as computer science✍

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

    thanks mam , i was confused in this multiplication from 4 days , finally found this ...

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

    How simply u explain 👍👍

  • @DarshanRaval-e6q
    @DarshanRaval-e6q 7 місяців тому +1

    Thank you mam 💯

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

    In love with jenny's lectures!!

  • @SurajKumar-tv9bo
    @SurajKumar-tv9bo 3 роки тому +1

    There will be k

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

    I just love ur explaining style

  • @Gauravsingh-er7qi
    @Gauravsingh-er7qi Рік тому

    mam love your teaching style ❤❤❤❤

  • @-EE-AnshSingh
    @-EE-AnshSingh 2 роки тому +2

    Ma'am we can also initialize c[i][j]=0 in the k loop and perform like c[i][j]=c[i][j]+a[i][k]*b[k][j] .

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

    Thanks Mam your way of explaining concepts is too good ❤❤

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

    Hi mam,
    I have doubt,
    Here you told "K" Value is upper bound value.
    i.e Columns of 1st Matrix Or Rows of 2nd Matrix(n==p). But you taken "m"
    for(k=0;k

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

    Your teaching is really awesome ma'am...

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

    Mam, why u should not write k

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

    Thank you mam for clearing my doubt
    i was confused about the K variable

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

    😅subject is understanding but in a slow way but those expressions made me understand everything and feeling shy for those cute things 🥰

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

    oh yes,i found this concept hard ,after watching this video i still get confused butttttt i literaly watch this video evey night for once or twice after 3 days now i understand..tq ....

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

    Love you ma'am for this amazing video 🥰🥰🥰🥰🥰🥰🥰

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

    Line no 59
    for(k=0;k

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

      yes there either be n or p bcz n =p and
      the new matrix we formed is that m*q form
      but in mam line no. 59 is m there that is inncorrect .

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

      👍

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

    we just love your dry run mem❤

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

    Thnx for uploading ma'am 🙏🙏🙏

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

    Thanku for giving clear conception of Array❤️

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

    thank you so much ...........lots of love and respect

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

    Very nice explanation! 😎

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

    Beautifully explain

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

    Much better than my college

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

    Ma'am, you're angel from heaven. I'm watching this on 14th July, 2023 at 3:23 am in the morning.

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

    Thanks a lot ma'am. It is crystal clear now.

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

    2Marow is my 1St sem exam... Today I'm watching ur videos💕💕😻😻

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

    We love your explanation madam!!!

  • @World-of-programming.
    @World-of-programming. 2 місяці тому

    I solve it like you , exactly!! But 1 question why he didn't work for example matrix 1 : (2,3) and matrix (3,1)

  • @himanshu-x8s6b
    @himanshu-x8s6b 2 місяці тому

    thank you mam

  • @Alan_plays_hard
    @Alan_plays_hard 14 днів тому

    Thank you very much ma'am

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

    Thanks..now i got it properly

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

    Thank you very much dear And then your voice very gud

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

    wow this was really good video thanks ma'am

  • @specificgyan-adarshmishra7857
    @specificgyan-adarshmishra7857 3 роки тому

    Yes mam ise hm math me calculation kr rhe h but yha to iska program hi 🤯🤯

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

    Lot of LOVEs from Pakistan 🇵🇰

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

    NICE SUPER EXCELLENT MOTIVATED

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

    Mam. You like teach my mam
    And. Your eye looking very very beautiful😍😍😍❤

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

    VS Code editor is the best🔥

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

    Superb understanding

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

    I need to multiply the matrix with its tranpose in the same program. please let me know how i can do that

  • @dd9484
    @dd9484 3 роки тому +7

    suppose 2 matrices a(3*2) and b(2*2) are to multiply. how k loop will work as k is taking up to m (here for 3 rows are taken in m) i.e. for the element a[0][2]*b[2][0] k has to continue the loop but no value is there in a matrix. here multiplication is possible but cant understand k loop here. PLEASE REPLYYY

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

      K is imaginary and it simply stands for the positions of the row element of a anf column element of b. K is common because the 1st is multiplied with the 1st, 2nd with 2nd, 3rd with 3rd etc........
      In your case k is only 2 because the rows of a are 2 and colums of b are 2.
      I hope you understood it already and am just helping another stuckee😊

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

      k

    • @dd9484
      @dd9484 9 місяців тому

      @@sarcasticboy4507 yes you're correct

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

    made the complex problem easier

  • @ParamitaDey-bi1mg
    @ParamitaDey-bi1mg 3 роки тому

    Ohhh..... What a program !!! If I have to code such a huge program then my finger will be😰😨

  • @GOD-R1-xyx
    @GOD-R1-xyx 2 роки тому +1

    Rows mean horizontal column is vertical

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

    Literally waiting for your today's video mam 👍🏻🙏🏻

  • @suresh.suthar.24
    @suresh.suthar.24 2 роки тому

    Thank you mam 😊 💖😊💖