Inserting element at Specific Position in Array | C++ Programming

Поделиться
HTML-код
  • Опубликовано: 10 окт 2024
  • Check the Entire Playlist
    • C++ Programming in Hindi
    Function in C++
    • Function in C++
    Loops in C++
    • Loops in C++
    Patterns in C++
    • Patterns in C++
    Array in C++
    • Array in C++
    Other Social Links
    Instagram / sumit_bisht_1.0
    My name is Sumit and Welcome to our RUclips channel Edutainment 1.0 Here we will mix education with the entertainment to make education more easy to learn and understand.
    -----------------------
    Thank you so much

Комментарии • 98

  • @nehajaiswal3942
    @nehajaiswal3942 4 года назад +6

    Thank you so much sir. U r teaching me the things my college teacher couldn't teach me in year.

    • @superidol238
      @superidol238 10 месяцев назад

      my high school teacher taught me this lol

  • @rabiadoll9546
    @rabiadoll9546 4 года назад +20

    Thanks alot ♥️♥️ Love the way when you said simply(isko aisey karrr dein geyy) it makes programming easier for us!

  • @Uzairkhan-dv6hz
    @Uzairkhan-dv6hz Месяц назад +1

    Your Video helped me a lot. Thank you!

  • @hazellincons7139
    @hazellincons7139 Год назад +3

    Can't understand his language but was able to understand the topic

  • @aliibraheem5713
    @aliibraheem5713 5 лет назад +6

    Thanks a lot was stuck at a program for so long. This helped fix a bug.

  • @manojrajput9930
    @manojrajput9930 2 года назад +1

    I watched lots of video on array insertion but I don't understand this now I understand insertion in array
    Thanks ❤👅

  • @nezuko7517
    @nezuko7517 Год назад

    thankyou Ranveer Allahabadia for teaching me insertion

  • @supriya.jogdanker
    @supriya.jogdanker 5 лет назад +4

    All your videos are brilliant.. I have learnt a lot. Thank you very much

  • @priyas7906
    @priyas7906 Год назад

    Literally u won my heart sir

  • @aliqasim8843
    @aliqasim8843 4 года назад +3

    The explanation seems clear, well done, but I do not master the English language, please add the subtitles file accompanying the video to the Arabic language, as some RUclips channels use and thank you.

  • @nitishkumarmallick6151
    @nitishkumarmallick6151 2 года назад +12

    #include
    using namespace std;
    int main(){
    int a[5] = {1,2,3,4,5};
    int position,num,i;
    coutnum;
    for (int i = 4; i >= position; i--)
    {
    a[i+1]=a[i];
    }

    a[position]=num;
    cout

    • @apexpredator9567
      @apexpredator9567 Месяц назад

      If we look closely, his method is correct because he is not using any brackets while running the loop.
      If we don't use the brackets the immediate line after the loop expression is executed.
      We are getting an error because we are enclosing the lines in curly brackets, so it is running the a[pos]=num;
      again and again

  • @anirudhsharma8608
    @anirudhsharma8608 4 года назад +2

    THANK YOU SOO MUCH BHAIII!!!!!! I HOPE YOU ARE SAFE AND HAPPY !!!

  • @uzairshafiq511
    @uzairshafiq511 3 года назад

    Sir plz explain kya logic for loop mean --i walya Ka nicha jab hum na number ko array ki position main insart Kar Diya ha to phir logic for loop Ka kya fada kya Ka for loop ko remove Kar Ka bi answer same arha ha

  • @kashifopal8973
    @kashifopal8973 3 года назад +2

    great way of teaching

  • @M1P1...
    @M1P1... 7 месяцев назад +2

    *Do index ka same value aa raha hai ?*

    • @Edutainment10
      @Edutainment10  7 месяцев назад

      Kaise

    • @M1P1...
      @M1P1... 7 месяцев назад

      @@Edutainment10 solve ho gya sir, mene calculation galat jagaha lagaya tha

  • @veskcompany1409
    @veskcompany1409 Год назад

    yes i did understand it very quickly .. veery quickly

  • @nasirkhan_325
    @nasirkhan_325 4 года назад

    Well explanation one of the best video on youtube thanks soo much

  • @Youtube-SIGMAs
    @Youtube-SIGMAs 2 года назад

    Isi k according agar ham array k start py and end py insert krna chahy to ye method theek ha?

  • @prajwalckm9172
    @prajwalckm9172 Год назад

    sir how to remember all 12 c++ programs for lab exam? please reply sir...

  • @SehrishSaif2024
    @SehrishSaif2024 10 месяцев назад

    are u using nested for here or single for for each???

  • @casualartandcrafts6266
    @casualartandcrafts6266 Год назад

    Thanks it helps me alot

  • @zahid_9217
    @zahid_9217 Год назад

    Thank you sir

  • @asadbukhari5744
    @asadbukhari5744 3 года назад +1

    thanks a lot bro

  • @silentkiller1093
    @silentkiller1093 4 года назад +1

    Sir is there every video of array???

  • @aqdasmanzoor7922
    @aqdasmanzoor7922 Год назад

    Brilliant sir 💯👌🏻

  • @vaibhavghanekar6146
    @vaibhavghanekar6146 4 года назад +1

    Sir for every input output is coming as
    -560

  • @bepositive325
    @bepositive325 2 года назад

    Sir please say me why I is decrementing I cant understand that part

  • @vlogpeshawar
    @vlogpeshawar 4 года назад

    It is very helpful for me
    thank you sir

  • @sahariyaofficialz421
    @sahariyaofficialz421 Год назад

    Thank a lot sir 🤗🤗❤❤

  • @SupportMe91
    @SupportMe91 4 года назад

    Good Logic sir to Shifting back

  • @AbdulMoiz-ko3ru
    @AbdulMoiz-ko3ru Год назад +1

    Generic code :-
    #include
    using namespace std;
    int main()
    {
    int array[100];
    int position = 0, number = 0, n = 0;
    cout > n;
    cout position >> number;//position is the index on which the number will be inserted
    for (int i = n ; i >= position; i--)//it will run till the entered position
    {
    array[i + 1] = array[i];//it will shift the index to next index after position
    }
    array[position] = number;//assign number to position
    for (int i = 0; i < n+1; i++)//display the array
    {
    cout

  • @youtubekumar8590
    @youtubekumar8590 2 года назад +1

    Thanku sir

  • @aali-in6lc
    @aali-in6lc Год назад

    This was so easy, i wonder why my teacher made it seem so complicated.

  • @Shivva90
    @Shivva90 4 года назад +1

    Thanks a lot sir 🙏🙏

  • @a01deepakkoshle47
    @a01deepakkoshle47 4 года назад

    behtareen video bhai 🙏

  • @destiny_tolevelup
    @destiny_tolevelup 11 месяцев назад

    Thank u so much🎉

  • @AsifKhan-zr4ht
    @AsifKhan-zr4ht 2 года назад

    Thanks a lot

  • @musharibjahangirkhan1868
    @musharibjahangirkhan1868 4 года назад

    Sir ab as coding ka dry run kasay kartay han.

  • @amarjeetrai9201
    @amarjeetrai9201 3 года назад

    Sir video series wise nahi hai

  • @explore.the-Balochistan
    @explore.the-Balochistan Год назад

    well done sir

  • @sujeetkumar4814
    @sujeetkumar4814 4 года назад +1

    Tab 2 index pe value kaise assign hogi....

  • @JBfunny.videos25
    @JBfunny.videos25 8 месяцев назад +1

    Meko question mila h seedha chlaa kr krna h insert back se nhi chlana 😢

  • @tarsem09742
    @tarsem09742 3 года назад +2

    I don't understand why we used i-- instead of I++ in loop please someone can explain me

    • @Brain_test361
      @Brain_test361 2 года назад

      Because if we use i++ then the same value store in all the array element

    • @none_braincell7477
      @none_braincell7477 2 года назад

      instead of going 1, 2, 3, 4
      it now go 4, 3, 2, 1

  • @immadisujith1832
    @immadisujith1832 3 года назад

    Tq

  • @Room_fourteen
    @Room_fourteen 2 года назад

    pos ko kahan initialize kiya hai?

  • @zkcreations7749
    @zkcreations7749 3 года назад

    Thanks You so much sir

  • @Bajrang_bali_ke_bhajan
    @Bajrang_bali_ke_bhajan 2 года назад

    Tq sir ur great

  • @harshjoshi5579
    @harshjoshi5579 3 года назад

    thank you so much sir aapne bcha liya fail hote hote

  • @dipikasanga6327
    @dipikasanga6327 5 лет назад +2

    How to insert multiple elements at specific position

    • @GuruDaBandaa
      @GuruDaBandaa 2 года назад +1

      this logic will not work for multiple insertion

  • @KISHANYadav-rz1kw
    @KISHANYadav-rz1kw 4 года назад

    Thanks sir

  • @pradeepkumarnayak3026
    @pradeepkumarnayak3026 4 года назад

    sir really superb.....

  • @muddassir1975
    @muddassir1975 4 года назад

    Thanks

  • @priyanshuraj2960
    @priyanshuraj2960 4 года назад

    Finally thanku 😭😭 bhai

  • @sanaafzal2596
    @sanaafzal2596 Год назад

    Nice sir

  • @kashifmahar2111
    @kashifmahar2111 5 лет назад +1

    Why we are Using a[i+1]???

  • @Wananchasqo
    @Wananchasqo 5 лет назад

    Thank you!

  • @pw217
    @pw217 2 года назад

    Ty sir🙏🙇‍♂️

  • @shubhamjain4502
    @shubhamjain4502 4 года назад +1

    Sir loop me i>=pos-1; ayega

  • @Saiyamminivlogs
    @Saiyamminivlogs 2 года назад

    Best 👍

  • @butterfliesinmymind7646
    @butterfliesinmymind7646 5 лет назад

    Thanx

  • @rajeevgupta9294
    @rajeevgupta9294 3 года назад

    sir pata nhi kyu college me esa kyu nhi padhate thank you sir

  • @ShubhamSingh-bb6ie
    @ShubhamSingh-bb6ie 5 лет назад

    Sir Int m Bina value liye huwa bataye na pless

  • @musharibjahangirkhan1868
    @musharibjahangirkhan1868 4 года назад

    Is someone know how to do dry run of this program

  • @rishabhraghav2131
    @rishabhraghav2131 2 года назад +1

    🧡

  • @zardadrathore
    @zardadrathore Год назад

    teaching method is really helpfull but sorry to say Improve Your handwritting

  • @vaibhavghanekar6146
    @vaibhavghanekar6146 4 года назад

    Sir output is not coming

  • @ankithanaik3327
    @ankithanaik3327 5 лет назад

    Ty sir....

  • @musharibjahangirkhan1868
    @musharibjahangirkhan1868 4 года назад

    Sirrrrrrrrrrrr

  • @saurabhchaudhary2745
    @saurabhchaudhary2745 5 лет назад

    6:19 pe i=i+1 kyu likha? yaha pe i++ kyu nhi aaya?

    • @BGMICLASHES
      @BGMICLASHES 5 лет назад +1

      Kuch farak nhi padta
      It's similar to I++

    • @BGMICLASHES
      @BGMICLASHES 5 лет назад

      @@your_dad_18 iam not explaining you

    • @your_dad_18
      @your_dad_18 5 лет назад

      @@BGMICLASHES abey dhoot bhooth,
      I also mistakly mentioned you.
      I also told him dhoot bro

    • @vatsalpagare6935
      @vatsalpagare6935 5 лет назад

      Ek hi baat h

  • @k-n907
    @k-n907 Год назад

    It could be done more easily

  • @musharibjahangirkhan1868
    @musharibjahangirkhan1868 4 года назад

    Are you there 🙋🙋🙋

  • @remaranji8290
    @remaranji8290 5 лет назад

    u

  • @keeplearningalways6632
    @keeplearningalways6632 3 года назад

    Don't mislead other students ok

  • @abusalahch9981
    @abusalahch9981 2 года назад

    Thank you so much sir❤️❤️

  • @strikegamer5218
    @strikegamer5218 4 года назад

    Thanku so much sir

  • @shreyaabharty6910
    @shreyaabharty6910 5 лет назад

    thank you sir