Video není dostupné.
Omlouváme se.
Arrays In C: C Tutorial In Hindi #23
Vložit
- čas přidán 5. 05. 2019
- In this series of C programming tutorial videos, I have explained you everything you need to know about C language. I hope you are enjoying this C course in Hindi.
►This C Lecture is a part of this C Programming Course: • C Language Tutorials I...
►Source Code + Notes: codewithharry....
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Learn Python In Hindi ...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►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.codewithha...
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
bhai aise hi simple hindi language me videos bnate raho!!
mere exam aane waale hai..pehley mujhe fail hone ka darr lg rha tha...but ab aapki videos dekhne ke baad meri tension thodi kam ho gyi hai........thanks bro!!!👍
Bhai agar videos dekhoge to fail na hone ki guarantee meri. Itna vishvas muje khudpar aur tumpar dono par hai :)
All the best bhai aur daro mat!
@@CodeWithHarry I know Aap reply dene se rhe but pher bhi😓
.
Explanation Samaj aaya but Code aadha aaya aadha gya Becz aap bhut fast ho gye the or wapas clear bhi nhi bataya ap ne ki kya or Kyu huaa....
@@CodeWithHarry bhai mark[i] ka meaning kya hai
kya ho raha hai
@@gunmun2005 mark[i] ek 1D array declare kiya gya hai
@@gunmun2005for loop tab tak chalega jab tak i ki value 4 nhi ho jati aur hame marks ki value bhi char tak print karvani hai isliye sir ne index ki jagah i likha hai taki marks ki char indexes print ho jaye.
A better explanation in 25 minutes than two weeks of study in college. 🙌
100% right
Its because of two reasons:_
1)You didn't payed aatention in class or you were hesitate to ask doubt.
2)One on one teaching is more efficient which is provided by youtube.
@@-lyxicsdamnnnnnnnnnn 😂😂 bro speaking faxxx
@@-lyxicsbro got tired in traveling to college therefore maybe😅and also because of class noise and unfriendly teachers😢
@@Allinone-sh6cj teachers are mostly friendly and travelling to college is tiring then you wouldn't get job cause job also needs travelling
harry bhai..i am very greatful for your videos..i lost all my hope that i can write a code..after 1.5 year i started studying again only beacause of your videos. whenever i watch your videos i feel fully charged of energy and confidence.
its been 1 year of your comment , i hope you are doing good
@@yashrawat747 now 2 year 💀
same bro
It's nice that you didn't gave up easily and started everything from scratch...hats off to your courage...
@@nakul8385Now 3 years
#include
int main()
{
printf(" *wassup? IIT BHU students* ") ;
printf("aagye coding sikhne") ;
return 0;
}
hi Lokesh I am also the student of BCA in Varanasi
in which year u are i would like to know
can you share with me your contact no
kis clg se ho bhai@@AnkurGupta-xg3ig
Bro give us some projects at this topic.
😂😂
Khud soch ke banalo
2D Array 👇👇👇
create two matrices and print the sum of these two matrices in new matrix
@@priyankushkashyap8268 m btata hu😂😂😂
@@rajusheoran4 batao
#include
int main()
{
int marks[4];
marks[0]=51;
marks[1]=52;
marks[2]=53;
marks[3]=54;
printf("The marks of student 3 is %d",marks[3-1]);
return 0;
}
It's one of the best channel on U tube to learn programming language..❤️
An array contains “n” elements of numbers. The several elements of this array may contain
the same number “x”. Write a program to find the total number of elements which are equal to
“x” and also indicate the position of the first such element in the array.
hi can u send the sol.??
It is a Question of Linear Search
Binary search se krlo
Use linear search. Declare one variable to count the occurence of x. If array[i] == x, increment by 1. Make another array of same size as that of a given array and store the index in that array.
Since C is statically typed, use another variable and initialize it to 0. If array[i] == x, store the index number in newarray[counter] and increment the counter by 1 so that whenever another occurence of x happens, the code will automatically put it in the next memory location and give you all the indices where x is located
THANK YOU SO MUCH SIR!!! never have I ever had any doubts left after watching your video🙌🙌🏻🙏🏻
15:25 Wah! Bhai kya baat kahi 😅
You are doing a great job!!
Your way of explaining is just awesome!!😍😍😍
Can we make array of a larger size say name[10] but insert only 5 names so that i can add 5 more names later when i want to?
yes you can do it. there is absolutely no issue in it. we define size initially just to reserve particular amount of blocks in memory. it's upto programmer then that how much he uses it.
Sir it is possible to increase array once you have declared it.
I confirm because I made a program an din my program, before the array is name[10] but after watching the last section of video I increase array and now this is name[11] and I not get any error and I am in Visual code.
Thanking sir ap bahot accha parate h 😅☺️☺️☺️☺️ sukriya
Thank you very much. You are a genius.
gajab samjhaya apne.dil balle balle hon gya
Array ke liye sahi example:
Library ke ek almari mein books,😊🙂
Sahi hai kya???
@@ss2facts65 han shayad sai ha pata nai
Thank you so much for your help ❤️
Superb explanation of array 👏👏👏👌
Thanks Bro... College mein muze kuch samajh nahi ata but jo tum batate ho wo direct dimaag mein jata hain.....
Thank you harry Bhai you are doing great work... 🌟📚
is it mandatory to start from 0?
can we not do like
marks[1]
marks[2]
marks[3]
marks[4]
like this?
An array starts with zero element. So, it's mandatory bro.
@@saurav_abhinav ok
Thank you harry bhai grateful to you❤❤
What is the technical difference between (0&1) Array integer. Plz explain
O denotes the first position in array ki pehle position par kaun hai. and 1 denotes second position
Literally sir your explanation is smooth even I am eating KACHORI but knowledge is directly store in brain nice sir
Extraordinary explaination
Bhai you are awesome aur bhai tumara video to CZcams pe sab sa Bhari.....!!!!
thanks you harry sir, maaza aa gaya apka array ka video dekh kar 😊😊😊😍😍😍😁😁😁👍👍👍😘😘😘👌👌👌
very beautiful explanation as always, Thanks harry bhai.
you are too good as a tutor
thank u so much
thank you for this wonderful content
do make more videos of array and functions 😊
Comment out karne ke liye pahle code ko select kare fir (ctrl+/)press kare ho jayega.
learnt everything because of you . Love this video and ur effort brother.
Concept was more easy then I thought off, just because of you sir😎😎
So harry bhai, i have a question.
when i declare an array e.g
char a[10];
So here i have declared an array of 11 characters (including the null one) but when i have to give input, it takes input of as many of the characters i want (it doesn't limit the size of array) and also when i print that array of characters it outputs them all. So, the question is why the array doesn't have any limit?
@codewithharry
If anyone else have the answer, it will be appreciated
same question bro, please help me if you figured it out
In loop u have to write i
Arre sir ka kehne ma mtlf phir loops wagera mai changes karna parega wo sab lafda hai isme..
Thank you
sir , can we have array of strings?
Fantastic bhai!!
best coding channel to learn in youtube.
False on the entire web
This is my code -
/* km to miles : x km = 0.62137x miles
inches to foot: 1 inch = 1/12 foot
cm to inches: 1 inch = 2.54 cm ------> 1 cm = 1/2.54 inches -------> 1 cm = 0.394 inches
pound to kg: 1 pound = 0.454 kg
inches to metres: 1 inch = 0.0254 m */
#include
double km_to_miles(double km) {
return (0.621370*km);
}
double inches_to_foot(double inches) {
return (0.833300*inches);
}
double cm_to_inches(double cm) {
return (0.394000*cm);
}
double pound_to_kg(double pounds) {
return (0.454000*pounds);
}
double inches_to_metres(double inches) {
return (0.025400*inches);
}
int main(int argc, char const *argv[])
{
int input;
double inputs[5];
int end_input;
start:
printf("Please enter 1 to convert km to miles.
");
printf("Please enter 2 to convert inches to foot.
");
printf("PLease enter 3 to convert cm to inches.
");
printf("Please enter 4 to convert pound to kgs.
");
printf("PLease enter 5 to convert inches to metres.
");
scanf("%d", &input);
switch (input)
{
case 1:
printf("Please enter the km.
");
scanf("%f", &inputs[0]);
printf("%f kms is %f miles
", inputs[0], km_to_miles(inputs[0]));
break;
case 2:
printf("Please enter the inches.
");
scanf("%f", &inputs[1]);
printf("%f inches is %f feet
", inputs[1], inches_to_foot(inputs[1]));
break;
case 3:
printf("Please enter the cm.
");
scanf("%f", &inputs[2]);
printf("%f cm is %f inches.
", inputs[2], cm_to_inches(inputs[2]));
break;
case 4:
printf("Please enter the pounds
");
scanf("%f", &inputs[3]);
printf("%f pounds is %f kgs.
", inputs[3], pound_to_kg(inputs[3]));
break;
case 5:
printf("Please enter the inches.
");
scanf("%f", &inputs[4]);
printf("%f inches is %f metres
", inputs[4], inches_to_metres(inputs[4]));
break;
default:
printf("You entered something wrong.
");
goto wrong_end_input;
break;
}
wrong_end_input:
printf("Press 1 to repeat the program. Press 2 to quit the program
");
scanf("%d", &end_input);
if (end_input == 1)
{
goto start;
}
else if (end_input == 2)
{
printf("Thanks for using this program.
");
goto end;
}
else
{
printf("You entered something wrong.
");
goto wrong_end_input;
}
end:
return 0;
}
I am getting this as the output. It is reading 0.000000 each time. My output -
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell aka.ms/pscore6
PS C:\Users\Dell\Desktop\C programming VS code> gcc revision1.c
PS C:\Users\Dell\Desktop\C programming VS code> .\a.exe
Please enter 1 to convert km to miles.
Please enter 2 to convert inches to foot.
PLease enter 3 to convert cm to inches.
Please enter 4 to convert pound to kgs.
PLease enter 5 to convert inches to metres.
2
Please enter the inches.
56.565
0.000000 inches is 0.000000 feet
Press 1 to repeat the program. Press 2 to quit the program
1
Please enter 1 to convert km to miles.
Please enter 2 to convert inches to foot.
PLease enter 3 to convert cm to inches.
Please enter 4 to convert pound to kgs.
PLease enter 5 to convert inches to metres.
5
Please enter the inches.
2
0.000000 inches is 0.000000 metres
Press 1 to repeat the program. Press 2 to quit the program
1
Please enter 1 to convert km to miles.
Please enter 2 to convert inches to foot.
PLease enter 3 to convert cm to inches.
Please enter 4 to convert pound to kgs.
PLease enter 5 to convert inches to metres.
7
You entered something wrong.
Press 1 to repeat the program. Press 2 to quit the program
2
Thanks for using this program.
There is some issue in the input I am not able to figure out. Please help.
your really a best teacher😊💚💚💜
Concept revise krny k liye apka channel best hai
Let's start
thank you very much for making this video very helpful ❤❤❤❤❤❤❤❤❤❤❤❤❤❤💕💕💕💕💕💕💕💕💕💕😘😘😘😘
Hello, Harry Bhai, thank you for this best tutorial❤. I have a doubt in this.
In VS code, you have first written the code with syntax 1 and then with syntax 2, so is it like syntax 1 and syntax 2 can be used alternatively or like we can use whichever we find it easier ? For 1D array
@@itsmeagain422 try this code... hope it solves ur problem
#include
int main()
{
int marks[5];
marks[0]=35;
marks[1]=67;
marks[2]=72;
marks[3]=22;
marks[4]=12;
for(int i=0;i50)
printf("Your marks are %d and congrats you have passed the exam!
",marks[i]);
else
printf("Your marks are %d and you are fail.
",marks[i]);
}
return 0;
}
YOU FORGET TO WRITE IT INSIDE FOR LOOP
@@itsmeagain422
@@itsmeagain422 I think you already figured it out
Enter 9 student marks and it will be stored inside 3x3 matrix 😅
#include
int main() {
int marks[3][3];
for(int i=0;i
THATS aswm and my best class one array.
you cleared my lot of concepts .
thanks Bhayia
An Array has a mix of 0s and 1s representing False and True Boolean values. Write function AllTrue() that returns 1 when all the entries in the array are true, and 0 when at least one of the entry in the array is false. Do Not Use Selection Structures.
kisi k pass is ka solution hai tu dey dy plzz ???
#include
int allTrue(int arr[]){
int a=1;
for (int i = 0; i < 5; i++){
if (arr[i] == 0){
a = 0;
break;
}
a = 1;
}
if (a == 0)
return 0;
return 1;
}
int main(){
int arr[5] = {1, 1, 1, 1, 1};
int res=allTrue(arr);
printf("%d",res);
return 0;
}
// Can also take value of arrays from users also.this code snippet is just for some basic explanation.
excellent explanation harry bhai
very helpful videos
i am fortunate enough to get a teacher like you
Sir am watching ur playlist from 1st video
But in this u went little fast and mixed up the programs in vsc
Ye thoda smz nhi aaya , dusre video dekh rha tha utube pe pr aapke video jitna kahi comfortable nhi hu
Is video ko thoda aur elaborate kr k batao pls
we cant change the value of array, once we declared. bro, i didn't understand this , since we have our code, we can make changes in the code, please explain?
you cant change the array size
@@shantomgamez1432 why, I mean code is in our hand, we can make any changes we want??
@@hello-iq2ug we cant change size at runtime
Ek proj banadiya at own thanks buddy
// Array is just the collection of same data types in C language **Data type should be same**
// Multiple data item with just single name
// for 2d array means matrices syntax is Data_type_name[row][columns] = {{elements},{elements}};
#include
int main()
{
int a[3][3]={{1,2,3},{1,1,1},{1,0,2}};
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
printf("%d\t",a[i][j]);
}
printf("
");
}
int d = a[0][0]*(a[1][1]*a[2][2] - a[1][2]*a[2][1])
- a[0][1]*(a[1][0]*a[2][2] - a[1][2]*a[2][0])
+ a[0][2]*(a[1][0]*a[2][1] - a[1][1]*a[2][0]);
printf("The determinent of above matices is %d
",d);
return 0;
}
i am a beginner in coding i have came this far and i want to know how and from where to practice more and more to become better,,also i want to know if on seeing the problem that harry bhaiyya gives us to solve if i dont get the solution on my own is that fine as a beginner or should i not at all look at the solution....?someone plz reply
#include
int main()
{
int marks[5];
marks[0]=35;
marks[1]=67;
marks[2]=72;
marks[3]=22;
marks[4]=12;
int i;
scanf("%d",&marks[i]);
printf("congrats you have passed the exam!
");
printf("your marks are %d
",marks[i]);
return 0;
}
can you tell me the mistake
the scanf function is for user input and you need not to take iput from the user ,just declare the passing marks and use a for loop instead and if you want the code i'll provide that too and mention the complete question
@@itsmeagain422
@@itsmeagain422 bro you should declare a new intiger for running the loop (i=0;i
bhaiya please tell the setting to clear the previous output automatically in terminal every time we run the code.
great video
i have learnt so much from you.
Thank-you 🙏 🙌 👏 👌 ❤️
#include
int main()
{
int marks[2][4];
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 4; j++)
{
printf("enter the marks of roll no %d of class %d:
", j, i, marks[i][j]);
scanf("%d", &marks[i][j]);
}
}
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 4; j++)
{
printf("marks of roll no %d of class %d is: %d
", j, i, marks[i][j]);
}
}
return 0;
}
well explained
2d array samjh me nahi aya par 1d array Crystal clear ho gaya , ap 2D array me bohot fast ja rahe the thora slow jao
Hggn bfhhrhbhre
god bless ur hardwork bhaiya ,i am referring ur videos its very helpfull:)
harry bhaiya ek problem mujhe baar baar ati ha... for example maine aaj apse arrays parh lia... ab kya main next lecture pe move krun ya array pr kuch practice krun.. or agar pratice krna ha to wo kahan se or kaise????
keep going sir you are awesome it's helps me lots so thanks to make the c language series
Thanku sir ❣️
Thank you bhaiya ❤️
Nice way of teaching 👨💻
U are better than white hat jr.
so does int arr[56] or marks[56] as u used to have the ability to store 56 individual data or 57 individual data?
56
Yes
thank you harry bhai for the fundamentals
Array emaging as egg tray
Understable courses
Thanks bhai....
Harry sir...!!!
What an explanation 🙂❣️❣️❣️🙂
Those who are having exams tomorrow
JUST CHILL 🥂
Thankyou soo much sir 😊 kafi acha smjh aya
#1 viewer bro
Thanks Harry Bhaiya
Nice bro maza aa giya array samaj kr❤️❤️❤️❤️❤️❤️
Thanks harry sir for explaining the conecpt in a very simple way.
Bro bahut achhe smjhate ho aap✨✨ keep going..
thank you sir
thank you.
For loop 2 bar use karna zarori hai (18:15 )
bina 2 baar use kre we won't be able to print the matrix
Thanks
You are legend ❣️
Bhai ap se buhut seekha hai may ne keep it up
we would need to learn the syntax for (main, for, while and others)?
harry.c:15:5: note: use option -std=c99 or -std=gnu99 to compile your code
harry.c:17:9: error: 'for' loop initial declarations are only allowed in C99 mode
I am facing this error. what should I do
Thank you so much bhaiya..... I got this concept in one shot
Nice video bhai ! ❤👍😄
Respect 👍
thank you for such a helpful video
Plz explain the 3rd point of disadvantage with example.
Arrey meri samajh me nhi aaya dude please help
Super video! I applauded for ₹200.00 👏👏👏
awesome video sir
At 11:30
bhaiya a[2] is retrieve value 10 hogi na ?
Yes bro
Thanks guruji ❤
how do you select and put the back slash?? 16:03
It's a short cut to comment out any sentence..
Sir already told us about this in past videos bruh 🙂
Shortcut is :- Crl + /
Thank you so much sir for this video