Arrays & Pointers Arithmetic in C++ | C++ Tutorials for Beginners #13

Sdílet
Vložit
  • čas přidán 13. 09. 2024
  • Download the best IDE for C, C# and C++: bit.ly/WholeTo...
    ►Source Code & Resources: codewithharry....
    ►This video is a part of my C++ playlist: • C++ Tutorials In Hindi
    ►For Doubt Solving, Brain Storming Sessions & guaranteed replies, join the channel membership here: / @codewithharry
    ►Click here to subscribe - / @codewithharry
    ►Checkout my English channel here: / programmingwithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Python Tutorial In Hin...
    ►Python Complete Course In Hindi - • Python Tutorials For A...
    ►C Language Complete Course In Hindi -
    • C Language Tutorials I...
    ►JavaScript Complete Course In Hindi -
    • JavaScript Tutorials I...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Django Complete Course In Hindi -
    • Python Django Tutorial...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithhar...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

Komentáře • 2,4K

  • @__ajaymath6585
    @__ajaymath6585 Před rokem +75

    accepted sir by while loop :- int marks[]={6,7,8,9,10};
    int i=0;
    while(i

  • @RamSingh-yn5fw
    @RamSingh-yn5fw Před 4 lety +192

    11:33 challenge accepted
    #include
    using namespace std;
    int main()
    {
    int i=0;
    int marks[4]={10,20,30,40};
    while(i

    • @shraone3185
      @shraone3185 Před 3 lety +11

      This is infinite loop

    • @rohansingh8827
      @rohansingh8827 Před 3 lety +14

      @@shraone3185 no condition i

    • @neerajpandey74
      @neerajpandey74 Před 3 lety +6

      ha maulm hai cha l tere baap ko mat sikha

    • @ShivamKumar-vw6pe
      @ShivamKumar-vw6pe Před 3 lety +30

      @@neerajpandey74 jaarurt baap ko hi h sikhana ki ese chutiya oolaad pedda naa kare

    • @neerajpandey74
      @neerajpandey74 Před 3 lety +1

      @@ShivamKumar-vw6pe ha to ye baat apne papa ko bolo

  • @hritishparasar2362
    @hritishparasar2362 Před 3 lety +10

    int main()
    {
    int marks[4]={34,23,14,36}
    //using while loop:
    int i = 0;
    while (i

  • @ANMOLK_9
    @ANMOLK_9 Před 8 měsíci +10

    02:48 An array is a collection of similar objects that allows skilled storage and access to multiple values.
    05:36 An array is a simple and convenient way to store and access multiple values.
    08:24 Arrays in C++ can be declared and specified in various ways.
    11:12 Printing values in an array and accessing them using loops.
    14:00 Understanding pointers and arrays.
    16:48 Incrementing index arithmetic permits the increase of indices based on the size of the data type.
    19:36 Understanding pointer arithmetic in C++.
    22:22 The value of output P depends on the presence of the increment operator.

  • @ash1221
    @ash1221 Před rokem +139

    PRO TIP :- You can use &Marks[n] to get the address of the desired block in the array.

  • @AadityaSPatil
    @AadityaSPatil Před 2 lety +53

    11:27
    Challenge accepted and accomplished for all three loops!! Thank you, Harry bhai ♥

  • @Arshad.Sultan0312
    @Arshad.Sultan0312 Před 2 lety +124

    i am a pharmacy graduate, and i am able to learn C++ with the help of such an extensive playlist. Many thanks to Harry Bhai

  • @travel.keshav
    @travel.keshav Před 3 lety +49

    18:58 Teyis , Chalis , Charso pachpan, Eigthy Nine .. every student can relate :)

  • @Navi-090
    @Navi-090 Před 6 měsíci +155

    Kon kon yeh video 2024 main dekh raha h ❤️❤️

  • @user-zg2yn1tb2d
    @user-zg2yn1tb2d Před rokem +6

    Challenge accepted and completed sir , you are the best !
    Here is the code for while loop :
    #include
    using namespace std ;

    int main(){
    int marks[]={6565, 9595, 8585, 9090};
    int i = 0;
    while(i

    • @AatiqaKalar
      @AatiqaKalar Před rokem

      You have a mistake in do while loop
      When you write :
      Cout

    • @user-zg2yn1tb2d
      @user-zg2yn1tb2d Před rokem

      @@AatiqaKalar if you notice the syntax between our code only has a difference of a space in it
      my chaining is : cout

    • @AatiqaKalar
      @AatiqaKalar Před rokem

      @Sajjad Hussain because of that i extra number are also printing

    • @user-zg2yn1tb2d
      @user-zg2yn1tb2d Před rokem

      @@AatiqaKalar thank you for pointing out the error

  • @MT_45
    @MT_45 Před 3 lety +43

    You are a really good tutor! Even telling thinks that are *wrong* so people won't make mistake, that's what my IIT coaching tutors used to do. Great work, keep it up. 😁👍

  • @crispyclips2916
    @crispyclips2916 Před 3 lety +23

    11:25 challenge accepted;
    # include
    using namespace std;
    //ARRAy ex:-:
    int main()
    {
    int marks[4] = {11,22,33,99};
    cout

    • @user-zk3wf2ef1p
      @user-zk3wf2ef1p Před 7 měsíci

      Bro what happened if I use int 1 instead of int0; in do.while loop please reply anyone's and clear my doubt

    • @GOJOANDSUKUNAFAN
      @GOJOANDSUKUNAFAN Před 6 měsíci

      ​@@user-zk3wf2ef1p the it's 1,2,3,4 i guess instead of 0,1,2,3 😂 I think

  • @manthanjagtap6736
    @manthanjagtap6736 Před 2 lety +39

    #challenge_accepted
    Using while loop :-
    #include
    int main()
    {
    int marks_1[ ] = {23,45,67,89,94};
    int i;
    while(i

  • @gourabchowdhury7986
    @gourabchowdhury7986 Před rokem +16

    //Using While Loop:
    #include
    using namespace std;
    int main() {
    int mathMarks[4] ={2278, 738, 378, 578};
    int i=0;
    while (i

  • @danishalam-r8y
    @danishalam-r8y Před rokem +3

    Challenge accepted and done 👍
    While loop
    int i = 0;
    while (i

  • @Rehulzretouch
    @Rehulzretouch Před 3 lety +569

    Bhai ke vdos agar colleges me use krne lagg gaye toh programming ke teachers ki naukari khaa khaaenge😂😂

    • @satyamsingh3
      @satyamsingh3 Před 3 lety +10

      @Mr Beast Fanclub bhai bhai bhai

    • @ompatel5226
      @ompatel5226 Před 3 lety +17

      Bahi hamare teacher ko pc chalu karne se sikahna start karna padega

    • @Rafiqul.Islam4
      @Rafiqul.Islam4 Před 3 lety +2

      are yar hamare teachere to bhai kaise pc chalu karna hai wo bhi nahi aatta

    • @muskanofficially2194
      @muskanofficially2194 Před 3 lety +2

      Ha sahi he... 😂😂😂😂

    • @ashutosh97
      @ashutosh97 Před 3 lety

      @@ompatel5226 🤣

  • @syedminhajhaidershah6822
    @syedminhajhaidershah6822 Před 2 lety +36

    Thanks so much for providing this course for us
    You have done a lot of effort in this course.
    My friend who is a professional programmer he learned from u he recommended me ur channel
    Support and Blessings from PK

  • @ritikasirohi2438
    @ritikasirohi2438 Před 2 lety +17

    Thanks for providing us a simpler way to learn each topic.

  • @D-Coder440
    @D-Coder440 Před rokem +39

    #Challenge Accepted
    11:26
    // Quick Quiz
    // using while and Do-While loops print the Value of Array
    #include
    using namespace std;
    int main()
    {
    int i = 0;
    int arr[5] = {98, 43, 45, 51, 76};
    cout

    • @ronakhirawat3637
      @ronakhirawat3637 Před 7 měsíci +2

      bhai do ke cout mai tum "i"likhe ho waha pe j aayega

  • @rajgaming6733
    @rajgaming6733 Před 3 měsíci +3

    Practice sets bhi chahiye the😫

  • @gouravmishra9803
    @gouravmishra9803 Před 4 lety +48

    pointer and array concept is now clear... Thank you❤ sir

    • @sirbap
      @sirbap Před 3 lety +6

      He is our big brother 🍾🍷
      Cause teacher (sir) is always show's extra attitude but Harry bhaiya explain everything with politeness.

  • @nikhilsrivastava311
    @nikhilsrivastava311 Před 4 lety +197

    //Done for all 3 loops :):)😎
    #include
    using namespace std;
    int main(){
    int i = 0;
    int Arr[4] = {23, 45, 455, 89};
    cout

    • @lovechauhan1278
      @lovechauhan1278 Před 3 lety +2

      words are displayed in output only no. are displayed ... someone help !!!!!

    • @lovechauhan1278
      @lovechauhan1278 Před 3 lety +1

      words are not*

    • @Kushagra1711
      @Kushagra1711 Před 2 lety

      @@lovechauhan1278 check if you've correctly used the syntax for cout operator!

    • @ashish4k07
      @ashish4k07 Před 2 lety

      correct

    • @adityapratappal
      @adityapratappal Před 2 lety +2

      actuall you have one more curly bracket in the while loop in last line if not then your prigram is not working.

  • @shubhayumandalstad8407
    @shubhayumandalstad8407 Před 3 lety +17

    Today i have completed watching this video and this is the fourth day of my c++ journey . I have started this course on 9th august.

    • @snowxedits04
      @snowxedits04 Před 3 lety

      Bhai kaha tak pahuche....1 mahine se jyada hoagay

    • @shubhayumandalstad8407
      @shubhayumandalstad8407 Před 3 lety

      Adarshmaurya I have completed till 46th video

    • @snowxedits04
      @snowxedits04 Před 3 lety

      @@shubhayumandalstad8407 Nice...I started on 30th August and I have completed 29 videos...with solving questions on hacker rank😊

    • @2003aryan
      @2003aryan Před 2 lety

      Bhai kaha tak pahuche....2 mahine se jyada hogye

    • @suvam9473
      @suvam9473 Před 2 lety +1

      ​@@2003aryan i m trying to complete this course in less than 10 days...deadline 15th Nov socha hai...

  • @Gaming_tag
    @Gaming_tag Před 3 měsíci +2

    #include
    using namespace std;
    int main(){
    int marks[5]={24,34,54,23,34};
    int i=0;
    while(i

  • @SamarthChawlaSam
    @SamarthChawlaSam Před měsícem +1

    11:26
    #include
    using namespace std;
    int i = 0;
    int main(){
    //While Loop
    while (i

  • @tanmaykarn
    @tanmaykarn Před 2 lety +4

    Using while loop :
    int i=0;
    while (i

  • @deepg2477
    @deepg2477 Před 3 lety +11

    very good explanation, many teachers cant explain it so clearly

  • @gmkhussain
    @gmkhussain Před 4 lety +15

    What a great video for all the beginners.
    I just love your work. 🍎

  • @imakashpandit
    @imakashpandit Před rokem +1

    #include
    using namespace std;
    int main()
    {
    int a[4]={ 23,45,56,67};
    int i=0;
    do
    {
    cout

  • @mahigour7124
    @mahigour7124 Před rokem +3

    #include
    using namespace std;
    int main(){
    int EnglishMarks[5]={56,20,43,87,66};
    int i=0;
    while (i

  • @nibsprogramming7794
    @nibsprogramming7794 Před 4 lety +12

    Thanks Harry for your hard work to teach us👍🙏

  • @umairansari5392
    @umairansari5392 Před 3 lety +5

    11:25
    // using while loop
    int i = 0;
    while(i

  • @abhijitkore7040
    @abhijitkore7040 Před 3 lety +44

    Sir give more and more problems to slove
    As we solve more problem our thinking skill and application of basic programmes will become storng 🙏🙏

  • @uzmvs2001
    @uzmvs2001 Před rokem

    int array[5] = {2 , 4,6,8,10};
    int i = 0;
    while(i < 5)
    {
    cout

  • @avantiktomar918
    @avantiktomar918 Před 10 měsíci +1

    #include
    using namespace std;
    int main(){
    int marks[]={23,43,45,46};
    int i=0;
    while(i

  • @GeekyShubhamSharma
    @GeekyShubhamSharma Před 4 lety +40

    Sir pls pls pls exercises and question and task bhi dijiye python wali series ki tarah pls
    Love your videos❣️❣️❣️❣️♥️♥️♥️

  • @XengShi
    @XengShi Před 4 lety +33

    "i love your Work", "
    ","😘😘😘"

  • @lokmanlimbu9383
    @lokmanlimbu9383 Před 9 měsíci +5

    Exercise for this chapter:
    Create an array of size n,ask the user for the value of n
    And for elements of the array,take those elements as input not using array index,instead use pointers and print those values using pointers
    Hint:Use pointer arithmetic

    • @_Vaibhav_Pal_
      @_Vaibhav_Pal_ Před 8 měsíci

      int n ;
      coutn;
      int arr[n];
      int* p = arr;
      for (int i=0; i

    • @PraveenKumar-vd8ev
      @PraveenKumar-vd8ev Před 8 měsíci

      #include
      using namespace std;
      int main(){
      int n;
      cout

  • @tishayadav993
    @tishayadav993 Před rokem +1

    #include
    using namespace std;
    int main(){
    int marks[4]={32,33,45,65};
    int i=0;
    while(i

  • @a-20-vikas_boarde.26
    @a-20-vikas_boarde.26 Před rokem +1

    Arrays using loop:
    //Aray using for Loop
    cout

  • @neeldurugkar5758
    @neeldurugkar5758 Před 4 lety +6

    Your teaching is very interesting & understanding,thank u bro..

  • @aryansisodiya6138
    @aryansisodiya6138 Před 3 lety +17

    int marks[] = {23, 57, 34, 354};
    // Quiz solution
    cout

    • @jeevan-23
      @jeevan-23 Před 2 lety

      Brilliant student

    • @aryansisodiya6138
      @aryansisodiya6138 Před 2 lety

      @@jeevan-23 Thanks

    • @jeevan-23
      @jeevan-23 Před 2 lety

      @@aryansisodiya6138 can u please say how to do 6 table

    • @NaveenReddyBattula
      @NaveenReddyBattula Před 2 lety

      @@jeevan-23
      //Using for loop:
      #include
      using namespace std;
      int main(){
      for ( int i = 0, i

  • @nikilsrujan7222
    @nikilsrujan7222 Před 3 lety +6

    # include
    using namespace std;
    int main(){
    int marks[4]={100 , 99 , 27 , 67 };

    int a = 0 ;
    while (a

  • @BilalKhan-qs4nw
    @BilalKhan-qs4nw Před rokem

    //Array by using do-while loop:
    #include
    using namespace std;
    int main(){
    int marks[5]={40,50,49,60,76};
    cout

  • @pulastyabhagwat7774
    @pulastyabhagwat7774 Před rokem +8

    Challenge accepted and Completed Successfully. Sir you are really great teacher, Before I started learning coding from you I used to find it boring but now I have started to enjoy it!!!!😊😊😊

  • @saranbbx9112
    @saranbbx9112 Před 2 lety +14

    1) WHILE LOOP
    #include
    using namespace std;
    int main() {
    int marks[] = {23 ,45, 56, 89};
    marks[2] = 455;
    int i = 0;
    while(i

  • @scoa01aishwarya2
    @scoa01aishwarya2 Před 2 lety +13

    Please make a video on key board shortcuts you use while coding in vs code.. In spite of telling in videos of different playlists, please make a seperate video on all the shortcuts, it will be really helpful for beginners to do typing then

    • @abhishekspehia185
      @abhishekspehia185 Před 2 lety +3

      czcams.com/video/t90FMQr9WWc/video.html
      Is video me Harry Bhai ne sab bataya he

    • @ritvikk8073
      @ritvikk8073 Před rokem

      ​@@abhishekspehia185👍👍

  • @bhavisheywalecha1414
    @bhavisheywalecha1414 Před 4 měsíci +1

    #include
    using namespace std;
    int main() {
    int marks[10]={10,56,98,34,76,49,02,57,83,17};
    int i=0;
    //BY USING DO WHILE LOOP:-
    do
    {
    cout

  • @Auratic_12
    @Auratic_12 Před rokem

    array in while and do while loop :
    while( i

  • @AnEngineerHuman
    @AnEngineerHuman Před rokem +5

    Day-09
    Completed_Upto_Tutorial_13
    Date-11/12/2022
    Time-23:59
    Topic-Arrays And Pointers Arithmatic
    Thank you harry bhai for this azmazing course

    • @adill6295
      @adill6295 Před 11 měsíci

      @anEngineerHuman now it has been 9 months, i think you would have become pro at coding.(●'◡'●)

    • @AnEngineerHuman
      @AnEngineerHuman Před 11 měsíci

      @@adill6295 nahi yar,coding me nahi,but new things learn karne me jyda pro ban raha hu.Abhi bahut sari chije explore kar raha hu.Ha, coding to karta hu,but utna nahi.Matlab full time nahi.

  • @MUKESHKUMAR-fd4jg
    @MUKESHKUMAR-fd4jg Před 3 lety +5

    11:25
    challenge accepted
    i have successfully solve this quiz using all the loops

  • @muzamilkhan7105
    @muzamilkhan7105 Před 2 lety +5

    int marks[ ]={23,34,45,56};
    int i=0;
    while(i

  • @saqlain_akbar_6802
    @saqlain_akbar_6802 Před rokem +1

    Challenge accepted 😁
    #include
    using namespace std ;
    int main()
    {
    int marks[4]={34,45,67,92} ;
    int i =0 ;
    while(i

  • @talibahemad8632
    @talibahemad8632 Před 4 lety +4

    harry bhai Java programming par tutorial banao

  • @harshlakwal9522
    @harshlakwal9522 Před 4 lety +7

    Challenge accepted bhaiyaa 🔥🔥 I'll do this...

  • @gambler27788
    @gambler27788 Před 2 lety +8

    11:50
    #include
    #include
    using namespace std;
    int i3=0;
    int main(){
    int b;
    coutb;
    int array[b];
    int array2[b];
    for (int i=0;i

  • @rohankumawat2870
    @rohankumawat2870 Před rokem

    using while loop:-
    // int i=0;
    // while(i

  • @chandrashekharchavan519
    @chandrashekharchavan519 Před rokem +2

    challenge accepted :
    #include
    using namespace std;
    int main(){

    int a[4] = {1,5,6,8};
    int i=0;
    do{
    cout

  • @qualiquan5625
    @qualiquan5625 Před rokem +5

    #include
    using namespace std;
    int main() {
    int result[10]= { 34,54 ,52,22,64,32,67,42,15,72};
    int i=0;
    do{
    cout

  • @ANKITCHAUHAN-cp4sd
    @ANKITCHAUHAN-cp4sd Před 4 lety +4

    Sir pls pls pls exercises and question and task bhi dijiye python wali series ki tarah pls
    Love your videos

  • @lokeshchandrachaudhary3703

    //USING DO WHILE LOOP:-
    #include
    using namespace std;
    int main()
    {
    int marks[4] = {43, 78, 67, 33};
    int i = 0;
    do
    {
    cout

  • @lightyy978
    @lightyy978 Před měsícem

    Printing array values using while loop
    int marks[ ] ={22,23,85,96};
    int i=0;
    while (i

  • @AaradhayKediyal2712
    @AaradhayKediyal2712 Před rokem

    int i=0;
    while(i

  • @adityapratappal
    @adityapratappal Před 2 lety +7

    Challenge exepted.😎
    And really great teacher.
    Only Your video's help me to understand the coding in online mathod.🤗

  • @RakeshKumar-ks7gw
    @RakeshKumar-ks7gw Před 4 lety +4

    Sir mere pass koe computer diploma nhi hai leken me CRPF me rhte huye Kuch spical sekena Chahta hu
    Muje computer me bhut intereste h
    Eslye muje kya sekna chaye aap betaye jese mere ko khude ke uper gerve ho
    Sir reply jerur dena me Aapke jebav Ka wait ker rha hu

  • @sharathsasidharan3125
    @sharathsasidharan3125 Před 4 lety +7

    ALRIGHT!
    #include
    using namespace std;
    int main()
    {
    // FOR LOOPS FOR ARRAYS
    int marks[] = {14,45,89,22,15};
    marks[3]=20; //UPDATING THE VALUE OF INDEX 3
    cout

  • @beetech2000
    @beetech2000 Před 2 měsíci

    //Array
    int marks[] = {23, 45, 58, 63};
    // cout

  • @DaniyalHassan-j3n
    @DaniyalHassan-j3n Před 23 hodinami +1

    Challenge accepted
    While loop❤❤❤
    Int I=0;
    While(I

  • @ntech3674
    @ntech3674 Před 3 lety +5

    Thank you harry bhai for making this. salute you man For this great efforts for us 😇😇

  • @FalconXGame
    @FalconXGame Před 3 lety +4

    great video and I have a doubt that is how can we display a particular number from the array which is not in a particular numerical order

    • @Natsuo_873
      @Natsuo_873 Před 11 měsíci

      you have watched this 2 years ago so what have you done upto yet

  • @surendrakushwaha7469
    @surendrakushwaha7469 Před 4 lety +6

    name - Surendra kushwaha
    From Banda UP
    Sir, kindly make a complete series on DBMS (SQL)
    after web development
    Your Big fan sir & regular viewer

  • @shantan_u
    @shantan_u Před 2 měsíci +1

    // Quick Quiz 11:10
    #include
    using namespace std;
    int main(){
    int marks [4] ={87,39,44,84};
    int i=0;
    while (i

  • @atomicthingss
    @atomicthingss Před 6 měsíci

    #include
    using namespace std;
    int main(){
    int i=0;
    int marks[]={34,67,89,45};
    while (i

  • @rkv7423
    @rkv7423 Před 2 lety +4

    Challenge accepted and target is achieved for all three loops

  • @kuberanb9536
    @kuberanb9536 Před 3 lety +4

    Pointers concept starts at 11:51
    Save your time

  • @Tech_Aura
    @Tech_Aura Před rokem

    In love with your playlist

  • @mwahajsajidali5799
    @mwahajsajidali5799 Před 2 lety

    Challenge accepted and done:
    #include
    using name space std;
    int main(){
    int marks [ 3 ]={ 34,45,67,82 };
    int a=0;
    //while loop
    while( a

  • @upendratripathi5675
    @upendratripathi5675 Před rokem +1

    #include
    using namespace std;
    int main(){
    //array inn c++************
    int marks[4] ={26, 54, 85, 94};
    int mathmarks[4];
    mathmarks[0] = 5488;
    mathmarks[1] = 642;
    mathmarks[2] = 987;
    mathmarks[3] = 97;
    cout

  • @atifmalik8012
    @atifmalik8012 Před měsícem

    // in pointer arithmetic with array if we make a pointer variable then to store address of array inside tha just do
    // p= name_array
    //in this address of arr[0] is stored inside p so if we derefrence it then it will give value at arr[0]
    // in pointer arithmetic if we add 1,2,3 etc then size of pointer data type will be added in adress so we can access value at that address in short arr[i]=*(p+i)
    #include
    using namespace std;
    int main() {
    int marks[] = {23,65,89,55};
    int *p = marks;
    cout

  • @ADITYAKUMAR-po3pp
    @ADITYAKUMAR-po3pp Před rokem +1

    // using while loop
    #include
    using namespace std;
    int main() {
    int marks[]={90,80,100,40};
    int i=0;
    while(i

  • @sananoor1814
    @sananoor1814 Před 10 měsíci

    By using while loop:
    int i=0;
    while(i

  • @sumitdon2004
    @sumitdon2004 Před rokem +1

    accepted and done
    #include
    using namespace std;
    int main(){
    int marks[]= {23,24,29,28};
    int i=0;
    while (i

  • @adityachoudhary7171
    @adityachoudhary7171 Před rokem +2

    Challenge accepted ans given below
    int i =0;
    while(i

  • @MKH_OFFICIAL_
    @MKH_OFFICIAL_ Před 7 měsíci +1

    Quick quiz challenge accepted and done successfully in first attempt❤

  • @saptarshighosh2435
    @saptarshighosh2435 Před rokem +1

    #include
    using namespace std;
    int main(){
    int marks[5]={34,56,78,89,67};
    // marks[3]=67;// changeing the element of an array;
    /*alternative to create an array
    int marks[3];
    marks[0]=56;
    marks[1]=97;
    marks[2]=88;*/
    // cout

    • @roshen_iitm
      @roshen_iitm Před rokem

      Brother you should use multi line comment instead of repeating single line comments

  • @srajansingh8028
    @srajansingh8028 Před rokem

    For while
    #include
    using namespace std;
    int main()
    {
    int marks [5] { 71, 72,73,74,75};
    int i = 0;
    while (i

  • @prabhdeepbhullar6857
    @prabhdeepbhullar6857 Před rokem +2

    challange accepted and i have done it brother
    thanks a lot for helping us 😊

  • @redditrewind4Upage
    @redditrewind4Upage Před rokem

    #include
    using namespace std;
    int main()
    {
    int sumu[5]={11,22,33,44,55};
    int i=0;
    while(i

  • @Krishnaaa27
    @Krishnaaa27 Před 2 měsíci

    The code for while loop is:
    #include
    using namespace std;
    int main(){
    int marks[]={34, 56, 96, 45};
    int i=0;
    while(i

  • @amannaik4323
    @amannaik4323 Před rokem

    #include
    using namespace std;
    int main(){
    int a[4]={23,45,56,89};
    int i;
    while (i

  • @hasi._.sheikhvlogs1832
    @hasi._.sheikhvlogs1832 Před 7 měsíci

    using do while
    #include
    using namespace std;
    int main()
    {
    int c[3]={100,101,202};
    int i=0;
    do
    {
    cout

  • @bholi-therabbit6251
    @bholi-therabbit6251 Před 5 měsíci

    #include
    using namespace std;
    int main(){
    int marks[4]={34,56,78,90};
    int i=0;
    do{
    cout

  • @UmairMughal-z2v
    @UmairMughal-z2v Před 12 dny

    int mark[]={23,45,89,34,90,56};
    int e=0;
    while(e

  • @SKD14344AK
    @SKD14344AK Před 7 měsíci +1

    # challenge accepted 11:26
    // by using "while loop"
    #include
    using namespace std;
    int main(){
    int i=0;
    while(i

  • @Alien-ou4nu
    @Alien-ou4nu Před měsícem

    challenge accepted, sir.
    1] do-while loop :-
    int marks[] = {32,43,76,64,12,98};
    int a = 0;
    do
    {
    cout

  • @Meri_Bakchodi
    @Meri_Bakchodi Před 7 měsíci

    #include
    using namespace std;
    int main()
    {
    int mark[4],i=1;
    coutmark[i];
    cout

  • @internetbeing3681
    @internetbeing3681 Před rokem

    11:19
    //Printing values in array by while loop
    #include
    using namespace std;
    int main(){
    int marks[5] = {23, 44, 55, 60, 80}
    int i=0;
    while(i

  • @MukeshLilawat1
    @MukeshLilawat1 Před 6 měsíci

    int i = 0;
    while (i < 4)
    {
    cout

  • @reepikangsus6913
    @reepikangsus6913 Před rokem

    //using do-while loop.
    #include
    using namespace std;
    int main()
    {
    int marks[] = {23,34,56,65};
    int i = 0; //initialisation
    do{
    cout

  • @vivekmaurya5990
    @vivekmaurya5990 Před rokem

    using while loop
    int main(){
    int marks[] = { 45 , 35 , 55 ,56 ,78};
    int i=0;
    while(i