Arrays & Pointers Arithmetic in C++ | C++ Tutorials for Beginners #13
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
accepted sir by while loop :- int marks[]={6,7,8,9,10};
int i=0;
while(i
kya bawasir hai bhai aise code ni padha jaata
👏👏
@@sujalthakkar2118 bawasir to tum khud ho
11:33 challenge accepted
#include
using namespace std;
int main()
{
int i=0;
int marks[4]={10,20,30,40};
while(i
This is infinite loop
@@shraone3185 no condition i
ha maulm hai cha l tere baap ko mat sikha
@@neerajpandey74 jaarurt baap ko hi h sikhana ki ese chutiya oolaad pedda naa kare
@@ShivamKumar-vw6pe ha to ye baat apne papa ko bolo
int main()
{
int marks[4]={34,23,14,36}
//using while loop:
int i = 0;
while (i
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.
PRO TIP :- You can use &Marks[n] to get the address of the desired block in the array.
wow
Wrong
Yeah figured it out by mistake when I wrote
cout
See 13:11, you are wrong.
okay
11:27
Challenge accepted and accomplished for all three loops!! Thank you, Harry bhai ♥
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
how much you have learnt ?
@@manishnegi6927 entire c and c++
You can watch parallel world pharmacy for refreshment sake.
@@Arshad.Sultan0312 you age sir?
i am also pharmacy student
18:58 Teyis , Chalis , Charso pachpan, Eigthy Nine .. every student can relate :)
Nice comment yaar
while(j
Navasi
Kon kon yeh video 2024 main dekh raha h ❤️❤️
Ma bro
me
Hum
For mooc exam😊
Hasne ki bhi bat ha kya??
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
You have a mistake in do while loop
When you write :
Cout
@@AatiqaKalar if you notice the syntax between our code only has a difference of a space in it
my chaining is : cout
@Sajjad Hussain because of that i extra number are also printing
@@AatiqaKalar thank you for pointing out the error
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. 😁👍
Are you a Weeb?👀
11:25 challenge accepted;
# include
using namespace std;
//ARRAy ex:-:
int main()
{
int marks[4] = {11,22,33,99};
cout
Bro what happened if I use int 1 instead of int0; in do.while loop please reply anyone's and clear my doubt
@@user-zk3wf2ef1p the it's 1,2,3,4 i guess instead of 0,1,2,3 😂 I think
#challenge_accepted
Using while loop :-
#include
int main()
{
int marks_1[ ] = {23,45,67,89,94};
int i;
while(i
11:25
Hi aap apna number de sakte ho
#include using namespace std; int main(){ int marks,i; while(i
Please initialise the i value to 0@@newsa3840
//Using While Loop:
#include
using namespace std;
int main() {
int mathMarks[4] ={2278, 738, 378, 578};
int i=0;
while (i
Challenge accepted and done 👍
While loop
int i = 0;
while (i
Bhaii array to initialize karr 😂
Bhai ke vdos agar colleges me use krne lagg gaye toh programming ke teachers ki naukari khaa khaaenge😂😂
@Mr Beast Fanclub bhai bhai bhai
Bahi hamare teacher ko pc chalu karne se sikahna start karna padega
are yar hamare teachere to bhai kaise pc chalu karna hai wo bhi nahi aatta
Ha sahi he... 😂😂😂😂
@@ompatel5226 🤣
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
Thanks for providing us a simpler way to learn each topic.
#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
bhai do ke cout mai tum "i"likhe ho waha pe j aayega
Practice sets bhi chahiye the😫
pointer and array concept is now clear... Thank you❤ sir
He is our big brother 🍾🍷
Cause teacher (sir) is always show's extra attitude but Harry bhaiya explain everything with politeness.
//Done for all 3 loops :):)😎
#include
using namespace std;
int main(){
int i = 0;
int Arr[4] = {23, 45, 455, 89};
cout
words are displayed in output only no. are displayed ... someone help !!!!!
words are not*
@@lovechauhan1278 check if you've correctly used the syntax for cout operator!
correct
actuall you have one more curly bracket in the while loop in last line if not then your prigram is not working.
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.
Bhai kaha tak pahuche....1 mahine se jyada hoagay
Adarshmaurya I have completed till 46th video
@@shubhayumandalstad8407 Nice...I started on 30th August and I have completed 29 videos...with solving questions on hacker rank😊
Bhai kaha tak pahuche....2 mahine se jyada hogye
@@2003aryan i m trying to complete this course in less than 10 days...deadline 15th Nov socha hai...
#include
using namespace std;
int main(){
int marks[5]={24,34,54,23,34};
int i=0;
while(i
11:26
#include
using namespace std;
int i = 0;
int main(){
//While Loop
while (i
Using while loop :
int i=0;
while (i
Hi bro
very good explanation, many teachers cant explain it so clearly
What a great video for all the beginners.
I just love your work. 🍎
i am unable people
love from prondia
#include
using namespace std;
int main()
{
int a[4]={ 23,45,56,67};
int i=0;
do
{
cout
#include
using namespace std;
int main(){
int EnglishMarks[5]={56,20,43,87,66};
int i=0;
while (i
Thanks Harry for your hard work to teach us👍🙏
11:25
// using while loop
int i = 0;
while(i
Sir give more and more problems to slove
As we solve more problem our thinking skill and application of basic programmes will become storng 🙏🙏
me too
@Waseem_ 07dz link dedo bro
@@kapilplays2127 channel ka name h apna college
int array[5] = {2 , 4,6,8,10};
int i = 0;
while(i < 5)
{
cout
#include
using namespace std;
int main(){
int marks[]={23,43,45,46};
int i=0;
while(i
Sir pls pls pls exercises and question and task bhi dijiye python wali series ki tarah pls
Love your videos❣️❣️❣️❣️♥️♥️♥️
"i love your Work", "
","😘😘😘"
yes
@@ruchiagarwal4943 yep
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
int n ;
coutn;
int arr[n];
int* p = arr;
for (int i=0; i
#include
using namespace std;
int main(){
int n;
cout
#include
using namespace std;
int main(){
int marks[4]={32,33,45,65};
int i=0;
while(i
Arrays using loop:
//Aray using for Loop
cout
Your teaching is very interesting & understanding,thank u bro..
int marks[] = {23, 57, 34, 354};
// Quiz solution
cout
Brilliant student
@@jeevan-23 Thanks
@@aryansisodiya6138 can u please say how to do 6 table
@@jeevan-23
//Using for loop:
#include
using namespace std;
int main(){
for ( int i = 0, i
# include
using namespace std;
int main(){
int marks[4]={100 , 99 , 27 , 67 };
int a = 0 ;
while (a
//Array by using do-while loop:
#include
using namespace std;
int main(){
int marks[5]={40,50,49,60,76};
cout
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!!!!😊😊😊
1) WHILE LOOP
#include
using namespace std;
int main() {
int marks[] = {23 ,45, 56, 89};
marks[2] = 455;
int i = 0;
while(i
good hai
@@unknownhuman4097 ❤️
bad hai
@@AIInsightsGlobal q dost
Error aa raha hai
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
czcams.com/video/t90FMQr9WWc/video.html
Is video me Harry Bhai ne sab bataya he
@@abhishekspehia185👍👍
#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
array in while and do while loop :
while( i
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
@anEngineerHuman now it has been 9 months, i think you would have become pro at coding.(●'◡'●)
@@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.
11:25
challenge accepted
i have successfully solve this quiz using all the loops
int marks[ ]={23,34,45,56};
int i=0;
while(i
Challenge accepted 😁
#include
using namespace std ;
int main()
{
int marks[4]={34,45,67,92} ;
int i =0 ;
while(i
harry bhai Java programming par tutorial banao
Challenge accepted bhaiyaa 🔥🔥 I'll do this...
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
there was no need of declaring i3 and i2 for loops, you can reuse i by writing i = 0 and then your loop
Bri like bachi ha tu
Mujh sa programming ni hoti ma Kiya kroo😢😢
@@MuhammadHassan-pj8sk us bro us😢
using while loop:-
// int i=0;
// while(i
challenge accepted :
#include
using namespace std;
int main(){
int a[4] = {1,5,6,8};
int i=0;
do{
cout
#include
using namespace std;
int main() {
int result[10]= { 34,54 ,52,22,64,32,67,42,15,72};
int i=0;
do{
cout
Sir pls pls pls exercises and question and task bhi dijiye python wali series ki tarah pls
Love your videos
//USING DO WHILE LOOP:-
#include
using namespace std;
int main()
{
int marks[4] = {43, 78, 67, 33};
int i = 0;
do
{
cout
Printing array values using while loop
int marks[ ] ={22,23,85,96};
int i=0;
while (i
int i=0;
while(i
Challenge exepted.😎
And really great teacher.
Only Your video's help me to understand the coding in online mathod.🤗
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
Bhai job kaise lagi
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
//Array
int marks[] = {23, 45, 58, 63};
// cout
Challenge accepted
While loop❤❤❤
Int I=0;
While(I
Thank you harry bhai for making this. salute you man For this great efforts for us 😇😇
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
you have watched this 2 years ago so what have you done upto yet
name - Surendra kushwaha
From Banda UP
Sir, kindly make a complete series on DBMS (SQL)
after web development
Your Big fan sir & regular viewer
donate kr cmmnt nahi
// Quick Quiz 11:10
#include
using namespace std;
int main(){
int marks [4] ={87,39,44,84};
int i=0;
while (i
#include
using namespace std;
int main(){
int i=0;
int marks[]={34,67,89,45};
while (i
Challenge accepted and target is achieved for all three loops
Pointers concept starts at 11:51
Save your time
In love with your playlist
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
#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
// 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
// using while loop
#include
using namespace std;
int main() {
int marks[]={90,80,100,40};
int i=0;
while(i
By using while loop:
int i=0;
while(i
accepted and done
#include
using namespace std;
int main(){
int marks[]= {23,24,29,28};
int i=0;
while (i
Challenge accepted ans given below
int i =0;
while(i
Quick quiz challenge accepted and done successfully in first attempt❤
#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
Brother you should use multi line comment instead of repeating single line comments
For while
#include
using namespace std;
int main()
{
int marks [5] { 71, 72,73,74,75};
int i = 0;
while (i
challange accepted and i have done it brother
thanks a lot for helping us 😊
#include
using namespace std;
int main()
{
int sumu[5]={11,22,33,44,55};
int i=0;
while(i
The code for while loop is:
#include
using namespace std;
int main(){
int marks[]={34, 56, 96, 45};
int i=0;
while(i
#include
using namespace std;
int main(){
int a[4]={23,45,56,89};
int i;
while (i
using do while
#include
using namespace std;
int main()
{
int c[3]={100,101,202};
int i=0;
do
{
cout
#include
using namespace std;
int main(){
int marks[4]={34,56,78,90};
int i=0;
do{
cout
int mark[]={23,45,89,34,90,56};
int e=0;
while(e
# challenge accepted 11:26
// by using "while loop"
#include
using namespace std;
int main(){
int i=0;
while(i
challenge accepted, sir.
1] do-while loop :-
int marks[] = {32,43,76,64,12,98};
int a = 0;
do
{
cout
#include
using namespace std;
int main()
{
int mark[4],i=1;
coutmark[i];
cout
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
int i = 0;
while (i < 4)
{
cout
//using do-while loop.
#include
using namespace std;
int main()
{
int marks[] = {23,34,56,65};
int i = 0; //initialisation
do{
cout
using while loop
int main(){
int marks[] = { 45 , 35 , 55 ,56 ,78};
int i=0;
while(i