Array Operations in C++ | Addition Subtraction & Multiplication

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 30

  • @SimpleSnippets
    @SimpleSnippets  5 ปีที่แล้ว +4

    Hey Guys, if you want many more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends ✌

    • @kashyapbhalodiya2945
      @kashyapbhalodiya2945 3 ปีที่แล้ว +1

      Sure and many more videos upload but in the c++ programming and your videos is good for the beginners.

  • @ayeshashaikh6407
    @ayeshashaikh6407 4 ปีที่แล้ว +7

    I'm learning a lot from your videos.
    Quick question for this one: How did subtraction and multiplication work for you?
    In the for loop you assigned add[i]= A[i] - B[i]... the addition array of 'i' is being assigned to both subtraction and multiplication. When I did exactly like yours it gave me the correct answer for addition but memory addresses for subtraction and multiplication. Please explain!
    Thank you for all your videos. It's helping me build logic :)

  • @sukhkaur444
    @sukhkaur444 5 ปีที่แล้ว +9

    You created 5 arrays, but you only used 3. mul[3], sub[3] were never used. You could have performed multiplication and subtraction , and store them into different arrays you created, in this case "mul[3], sub[3]". Am I right?

  • @nikhithashri835
    @nikhithashri835 3 ปีที่แล้ว +1

    Simple and easy to understand!

  • @mahnoor3824
    @mahnoor3824 3 ปีที่แล้ว

    Such an underrated channel

  • @prachikumbhar771
    @prachikumbhar771 4 ปีที่แล้ว +2

    What if in operations on array the size of 2 arrays are not same ? Will it work ?

  • @mohdfaraz4306
    @mohdfaraz4306 3 ปีที่แล้ว +1

    is for loop neccesary for every time when we use array variables???

    • @adityabansal6727
      @adityabansal6727 3 ปีที่แล้ว

      Yes cause u need many entries and that r difficult without loops, loops help in easy entering

  • @salversaipriya5780
    @salversaipriya5780 4 ปีที่แล้ว +1

    Bro for loop is a condition that's why we will be able to give input for 3 times in this program but in these two a[i] and b[i] why did you take "i" only please clarify this doubt bro

  • @WinifredEsinam
    @WinifredEsinam 8 หลายเดือนก่อน

    What if the size of the arrays are not the same, will it work?

  • @lijteddytube9717
    @lijteddytube9717 2 ปีที่แล้ว +1

    it was good!

  • @rajwalavalkar7208
    @rajwalavalkar7208 4 ปีที่แล้ว +1

    How can I take size of array from user ?

    • @SimpleSnippets
      @SimpleSnippets  4 ปีที่แล้ว +1

      Dynamic memory alloction. check this topic in this C++ playlist

  • @jmjjj4290
    @jmjjj4290 5 ปีที่แล้ว +2

    Why do we use FOR LOOP....???. .... Please help.. 🤔😥

    • @SimpleSnippets
      @SimpleSnippets  5 ปีที่แล้ว

      To iterate through the specific number of steps ✌️

    • @jmjjj4290
      @jmjjj4290 5 ปีที่แล้ว +2

      @@SimpleSnippets Thank you so much for the prompt reply.... 🙏😀... I have already shared to my friends... Will continue sharing... 😄😄😄... GOD BLESS... !!!

    • @SimpleSnippets
      @SimpleSnippets  5 ปีที่แล้ว +1

      Most welcome my friend 😊 very happy to hear this from you ✌️

  • @VIGNESHWARANS-op7wo
    @VIGNESHWARANS-op7wo 3 ปีที่แล้ว

    What will do if the size of two array is not even?..

  • @jas4768
    @jas4768 5 ปีที่แล้ว +3

    The multiplication is completely wrong. Theres a specific method to multiply arrays.

  • @rossrisl
    @rossrisl 6 ปีที่แล้ว

    why using 'for' loop..did get it..

    • @rossrisl
      @rossrisl 6 ปีที่แล้ว

      I mean did not get it

  • @jofinjohnson5293
    @jofinjohnson5293 6 ปีที่แล้ว +1

    thanks

  • @geekyprogrammer4831
    @geekyprogrammer4831 6 ปีที่แล้ว +3

    thats not how you do multiplication for matrix. its completely wrong!!!

  • @vaishnaviellur4725
    @vaishnaviellur4725 3 ปีที่แล้ว

    That pls after every video makes me to subscribe

  • @himanshutripathi9910
    @himanshutripathi9910 6 ปีที่แล้ว +1

    The text is not very clear

    • @SimpleSnippets
      @SimpleSnippets  6 ปีที่แล้ว +1

      Yeah I used to record it at 720p Max res since my native res of laptop was 720p. Sorry for the inconveniences ✌️
      I have recently upgraded to 1080p screen ✌️

  • @IshmalIqbal-v9y
    @IshmalIqbal-v9y 2 หลายเดือนก่อน

    Araam SE Bola kro Bhai itni jaldi Kia ahi

  • @vikashbist6820
    @vikashbist6820 7 ปีที่แล้ว

    Bad #ever seen