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

preview_player
Показать описание

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

accepted sir by while loop :- int marks[]={6, 7, 8, 9, 10};
int i=0;
while(i<5)
{
cout<<marks[i]<<endl;
i++; }
now by do-while loop :- int i=0;
do {
cout<<marks[i]<<endl;
i++;
}
while(i<5);

__ajaymath
Автор

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

ritikasirohi
Автор

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

syedminhajhaidershah
Автор

#Challenge Accepted
11:26
// Quick Quiz
// using while and Do-While loops print the Value of Array

#include <iostream>
using namespace std;
int main()
{
int i = 0;
int arr[5] = {98, 43, 45, 51, 76};
cout<<"Challenge Accepted Let's Begin "<<endl;
cout<<"Using While Loop Printing the value of Elements : - "<<endl;
while (i < 5)
{
cout << "The value of Element arr[" << i << "] is : " << arr[i] << endl;
i++;
}


int j = 0;
cout<<"Using Do-While Loop Printing the value of Elements : - "<<endl;
do
{
cout << "The value of Element arr[" << i << "] is : " << arr[j] << endl;
j++;
} while (j < 5);

return 0;
}

D-Coder
Автор

very good explanation, many teachers cant explain it so clearly

deepg
Автор

Thanks Harry for your hard work to teach us👍🙏

nibsprogramming
Автор

Really sir, , , your method and your knowledge is very useful for all students 👍

muhammadshahzad
Автор

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.

ANMOLK_
Автор

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

neeldurugkar
Автор

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

k_keshavverma
Автор

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

ash
Автор

Yes we can do the same using while and do-while loop, , I've done this same time as practice 😊❤

Higcz
Автор

11:33 challenge accepted
#include<iostream>
using namespace std;

int main()
{
int i=0;
int marks[4]={10, 20, 30, 40};
while(i<4)
{
cout<<"the value of marks "<<i<<"is"<<marks[i]<<endl;
i++;
}
return 0;
}

RamSingh-ynfw
Автор

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

//using do-while loop:
int a = 0;
do
{
cout<<marks[a]<<endl;
a++;
}while(a<4);

return 0;
}

hritishparasar
Автор

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

navita
Автор

Challenge accepted and done 👍
While loop
int i = 0;
while (i<4)
{
cout<<"The value of marks "<<i<<" is "<<marks[i]<<endl;
i++;
}

do-while loop
int i=0;
do
{
cout<<"The value of marks "<<i<<" is "<<marks[i]<<endl;
i++;
} while (i<4);

_bca_danishalam
Автор

What a great video for all the beginners.

I just love your work. 🍎

gmkhussain
Автор

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. 😁👍

MT_
Автор

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

uzmvs
Автор

Thank you harry for making me understand c++ better

abnocsheous
welcome to shbcf.ru