Structures In C: C Tutorial In Hindi #37
Вставка
- Опубліковано 30 вер 2024
- 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
Your teaching is more beautiful than my girlfroend
😂
😂😂
🤣🤣🤣
😂😂😂😂😂😂
Coders dont have a girlfriend
Come to teach in my college also 😂 you are great #harry
Underrated channel.
Great explanation. 👍🏻
well now its of 4+ million subs
well now its of 5+ million subs@@Robin4lyf 😅
@@ashmitdas2078 well now about to 6m
@@ashmitdas2078 now 6 million plus
Quick Quiz solution:-
#include
#include
struct student{
int roll;
float marks;
char fav_game[78];
};
int main() {
// Write C code here
struct student siya ,riya ,abhishek ,jadoo;
siya.roll=1;
siya.marks=76.786;
strcpy(siya.fav_game,"Basketball");
printf("The information of siya is roll no. = %d
, marks = %f , result = %s
", siya.roll, siya.marks, siya.fav_game);
return 0;
}
Very nice video ❤ 👍👍🔥. Quiz solution :
#include
#include
struct student
{
int age;
int class;
int roll_no;
char name[25];
char section;
};
struct student std1;
int main()
{
// Quiz:
// Given below information of a student. Print them :-
strcpy(std1.name, "Hari Putter");
std1.age = 16;
std1.class = 11;
std1.section = 'C';
std1.roll_no = 23;
// Solution :-
printf("Name: %s
", std1.name);
printf("Age: %d
", std1.age);
printf("Class: %d
", std1.class);
printf("Section: %c
", std1.section);
printf("Roll no: %d
", std1.roll_no);
return 0;
}
//Thanks :)
phenomenal explanation , Highly recomended
whenever thiings get difficult
HARRY BHAI __ aap bs bne raho ,sunte rahiye dhyan se end tak ---
and in the end every thing became easy🙃😉
harry tommorow is my university exam in which unit 5 structure is also coming so please give me help by giving some notes and some useful questions
Generally I am not prefer ppt base lectures but you explanation is enough
To change my thoughts
I am studying in brainware of software engineering course
But still your learning methods is world class❤️
i am also from brainware
@@surajsantra6749 Kolkata??
Me also
Very helpful vdo sir..
Structure is so important concept in c .. aur aapne bahut easily samjhaaya hai isko..
Amazing.. thanks u so much sir
#feedback
Algorithm and data structure ka video banaou please....😃
But, the problem is still there. 10,000 employees ka information agar store karna ho to kya 10,000 variables declare karna padega ??
Amazing explanation 🥺🥺💖💖
GREAT WORK MAN ....KEEP THE GD WORK DOING
Justice for shubham
#include
#include
//structure define data type
struct student
{
int roll;
char name[20];
int age;
int class;
};
//function
struct student data()
{
struct student info;
printf("Enter The Student's information
");
printf("Enter Roll NO:");
scanf("%d",&info.roll);
printf("Enter Name:");
fflush(stdin);
gets(info.name);
printf("Enter Age:");
scanf("%d",&info.age);
printf("Enter Class:");
scanf("%d",&info.class);
return(info);
}
//function display
void display(struct student info)
{
printf("--------Information-------
");
printf("Student Roll No is:%d
",info.roll);
printf("Student Name is:");
puts(info.name);
printf("Student Age is:%d
",info.age);
printf("Student Class is:%d
",info.class);
}
//main function
int main()
{
struct student d1;
d1=data();
display(d1);
return 0;
}
Incredible
Harry while explaining Rocket science: isme koi Rocket science nahi hai 😂
// Challenge accepeted.
// Author Sandeep Pareek
// Purpose to solve the given quiz
#include
#include
struct student
{
int rollnumber;
char name[53];
int percentage;
};
int main()
{
printf("WELCOME TO _______________ SCHOOL
");
struct student s,h,a;
s.rollnumber= 1;
h.rollnumber= 2;
a.rollnumber=3;
s.percentage=73;
h.percentage= 72;
a.percentage= 67;
strcpy(s.name,("sandy"));
strcpy(h.name,("sandeep"));
strcpy(a.name, ("sandu"));
printf("Roll number %d\t = %s\t percentage is %d
",s.rollnumber,s.name,s.percentage);
printf("Roll number %d\t = %s\t percentage is %d
",h.rollnumber,h.name,h.percentage);
printf("Roll number %d\t = %s\t percentage is %d
",a.rollnumber,a.name,a.percentage);
return 0;
}
Legend watching this vidio in 2023 😂😂
😆😆😆
ultra legend watching this video in 2024 😂
Ha harry bhai whatsapp no. Do no
Sir, can we make more structure variables using for loop ?
We have to use dynamic memory allocation in that case.
Harry bhai Ravi Or Shubham aapke best friend h kya😁
Super Under-Rated Channel
Love ur videos man
superb explanation
Quick quize
#include
#include
/*using #include becouse I use string funtion
on this program to print students name*/
struct Student
{
//the caraibles to collect from the students
int id;
int marks;
char fav_char;
char name[34];
};
int main()
{
struct Student milk, cake, curry; //student names
//proper data to collect from the student
milk.id = 14;
cake.id = 15;
curry.id = 16;
milk.marks = 40;
cake.marks = 20;
curry.marks = 46;
milk.fav_char = 'm';
cake.fav_char = 'c';
curry.fav_char = 'r';
//using strings fuction bny adding #include in global
strcpy(milk.name, "Milk is while in color
");
strcpy(cake.name, "cake is chocolate in test
");
strcpy(curry.name, "curry is best in test
");
//name of the student from here
printf("The name of milk is %s
", milk.name);
printf("The name of cake is %s
", cake.name);
printf("The name of curry is %s
", curry.name);
//id of the studen from here
printf("The id of milk is %d
", milk.id);
printf("The id of cake is %d
", cake.id);
printf("The id of curry is %d
", curry.id);
//marks of the students from here
printf("The marks of milk is %d
", milk.marks);
printf("The marks of cake is %d
", cake.marks);
printf("The makrs of curry is %d
", curry.marks);
//fav_char of the students from here
printf("The fav_char of milk is %c
", milk.fav_char);
printf("The fav_char of cake is %c
", cake.fav_char);
printf("The fav_char of curry is %c
", curry.fav_char);
return 0;
}
🤣🤣🤣🤣🤣
thanks for the comments its easily readable
@@namansharma8515 thank you 👍😊
Great Explain sir..,,You are the Best Explainer and Technical Teacher too...
Legend in 2024😂
Is it possible to declare another structure inside the structure and if at all possible then how can we access them ??
Nested
Thanks!
Who watching this video in 2024 ❤😮
👍🏼
Whenever we run new code in the terminal, whatever the old code we are running in it previosly becomes very big list in our terminal and because of this we have to scroll in the terminal to see our new output please suggest a solution to it
Amazing explanation
But please increase the font size it is very difficulty to see the code in mobile
Legend watch in 2024 😂😂😂
Aap webdev ke bad c++ language sikh Rahi ho kya🤔
# Can we declare \ initialise the 'function ' in structure ?
And did you forgot about pointers in structure ?
Great method of explaining.
Challenge Accepted.
Bhaiya, apko apni book likhni chahiye ek ♥️
Love ur videos bro 😊😊❤️❤️❤️
thanks for u r efforts harry
Thank u Sooo muCh Harry Bro
Issi trah smjhate rahain
AllaH aap ko or behtar bnaye Ameen
From Pakistan🇵🇰🥰
Bro but this did not solve the problem that u were talking about in the starting.
We are still making 4 different data types in every structure. And then we will make 10,000 of these. Which will add up to 40,000 only.
My other problem is: alright we did create them but how are we going to acess them in future. Suppose we want to access all the information about the students Id and name.
we can create an array of user defined datatype with required no. of students and access them through loop so instead of creating multiple arrays we can create a single array and write and read through the elements.
well this is my logic else there maybe something else which Harry bhai will reply
structure seems like objects in OOPs of other languages in which we have create an object and can change it properties
Yo yo kya maza tha yar is video pa
07-06-24
#include
#include
struct Student
{
int roll_no;
char name[50];
float marks;
};
struct Student s1, s2, s3;
int main()
{
s1.roll_no = 1;
s1.marks = 100;
strcpy(s1.name, "Ravi Singh");
s2.roll_no = 2;
s2.marks = 95;
strcpy(s2.name, "Rohit Kumar");
s3.roll_no = 3;
s3.marks = 90;
strcpy(s3.name, "Shubham Patel");
printf("Data Input Successful!
");
printf("Roll no. %d %s got %f marks.
", s1.roll_no, s1.name, s1.marks);
printf("Roll no. %d %s got %f marks.
", s2.roll_no, s2.name, s2.marks);
printf("Roll no. %d %s got %f marks.
", s3.roll_no, s3.name, s3.marks);
}
This video is better than my university’s 8 sessions of 2 hours each…. 25minutes>>16hours
printf("a's marks is: %d
a's id is:%d
a's favorite character is:%c
a's name is:%s", a.marks,a.id,a.fav_char,a.name);
Java tutorial please!
#include
#include
struct student
{
int id;
int marks;
char fc[100] ;
char name[100];
} mohan, rohan, sohan;
int main(int argc, char const *argv[])
{
mohan.id=1;
rohan.id=2;
sohan.id=3;
mohan.marks=45;
rohan.marks=42;
sohan.marks=49;
strcpy(mohan.fc, "Mohan is a good football player");
strcpy(rohan.fc, "Rohan is a good writer");
strcpy(sohan.fc, "Sohan is a good singer");
printf("Mohan id: %d, marks: %d, favorite character: %s
",mohan.id,mohan.marks,mohan.fc);
printf("Rohan id: %d, marks: %d, favorite character: %s
",rohan.id,rohan.marks,rohan.fc);
printf("sohan id: %d, marks: %d, favorite character: %s
",sohan.id,sohan.marks,sohan.fc);
return 0;
}
thanks a lot
Sir ap ki video Itni achi aur high level ke hain ki college main programming main main sab se tez hoon thanks
yes me bhi bro
Harry bhai bohot mast samjhaya tune ekdum clear kar dia 👍
Pura playlist bohot sahi he thank you bhai
Geat explanation sir thankyouuuuu!!
Sir ,
I used
char name[100];
s1.name[100] = " Shubham";
But it is showing that assignment to 'char' from 'char' makes integer from pointer without a cast.
What should i do sir?
@rishabhshah5619 bro your code is not correct
Harry bhai✨🔥🔥
challenge completed of quick quiz
#include
#include
struct student
{
int id;
int marks;
char fav_char;
char name[34];
};
int main()
{
struct student prerak,krish,shubham;
prerak.id = 1;
krish.id = 2;
shubham.id = 3;
prerak.marks = 99;
krish.marks = 89;
shubham.marks = 79;
prerak.fav_char = 'p';
krish.fav_char = 'k';
shubham.fav_char = 's';
strcpy(prerak.name,"prerak a tailor");
printf("prerak got %d marks
", prerak.marks);
printf("prerak's name is : %s
", prerak.name);
strcpy(krish.name,"krish d dave");
printf("krish got %d marks
", krish.marks);
printf("krish's name is : %s
", krish.name);
strcpy(shubham.name,"shubham k dave");
printf("shubham got %d marks
", shubham.marks);
printf("shubham's name is : %s
", shubham.name);
return 0;
}
💛
Explain the Array of structure and Array within a structure
harry bhai data structure ki playlist bhi bana do..plz
Quick Quiz Completed , code in reply
Mission Accomplished
25:55 how solve geeks for geek problem question not understand and diff like book questions
sir agr mujhe direct structure start kru then cpp start kru to age pro nhi ayegi na
Why cannot we print string without using strncpy ?.
Bro you ROCK 💀🦋
Make simple and short,
teach some more advance things .... these are just basic things 🙄🙄
you are just awesome...!!! made it very simple..
30k soon
void printdata(struct Student *s)
{
printf("Roll no = %d
", (*s).id);
printf("Name : ");
puts((*s).name);
printf("Marks = %d
", (*s).marks);
printf("Favourite Character = %c
", (*s).fav_char);
}
@code_with_harry brow structure ke or vidios banaao na please ( structure within structure ,, array of structure, ,,, structure of pointer , structure..........)etc.. in c advanced 🙏🙋♂️
Konsa jamana may rehte hu Bhai 😁😂
what is void print() and what is the use of it?
what is print();
Very nice explanation 😀
Can you plz help to know how to access Playlist of this course
5:31 स्ट्रक्चर में fev charactor ka क्या मेल ,कोई ढंग का लेते😅
Bohot ache videos banae hai
videos number 37 quick quiz solution
Local and global tguk taraha se samjo na bhaiyya please
Harry sir rocks 🤘
challenge accepted:
solved:
#include
#include
struct Student
{
char add[80];
char name[30];
char fav_char;
int id;
int marks;
} s1, s2, s3;
int main()
{
strcpy(s1.name, "harry");
strcpy(s2.name, "subham");
strcpy(s3.name, "ravi");
strcpy(s1.add, "San Francisco USA");
strcpy(s2.add, "Mundhwa,Pune,keshav nagar");
strcpy(s3.add, "Kharadi near zensar");
s1.id = 22;
s2.id = 34;
s3.id = 10;
s1.marks = 50;
s2.marks = 75;
s3.marks = 67;
s1.fav_char = 'h';
s2.fav_char = 's';
s3.fav_char = 'r';
printf("ID of student 1 is %d
", s1.id);
printf("Name of student 1 is %s
", s1.name);
printf("Marks of student 1 is %d
", s1.marks);
printf("Favourite character of 1 is %c
", s1.fav_char);
printf("Address of student 1 is %s
", s1.add);
printf("ID of student 2 is %d
", s2.id);
printf("Name of student 2 is %s
", s2.name);
printf("Marks of student 2 is %d
", s2.marks);
printf("Favourite character of 2 is %c
", s2.fav_char);
printf("Address of student 2 is %s
", s2.add);
printf("ID of student 3 is %d
", s3.id);
printf("Name of student 3 is %s
", s3.name);
printf("Marks of student 3 is %d
", s3.marks);
printf("Favourite character of 3 is %c
", s3.fav_char);
printf("Address of student 3 is %s
", s3.add);
return 0;
}
Why we are not using union in data structure instead to define nodes
moj kar di such mein ❤❤
@Harry Bhaiii I am getting issues in while taking character input in VS Code. It is not asking to give input on console screen. It is skipping the scanf part.
int main(){
int a;
char b;
printf("Enter the number of level
");
scanf("%d",&a);
printf("Enter the format of triangle: E for ERECT and R for REVERSE
");
scanf("%c",&b);
printf("value of b is %c ",b);
}
Do i need to do any changes in setting in code runner? Let me know where I did mistakes?
ye kha te?? kyu itne underrated hai?? abhi tak 10 mil pe hona chahiye ta
Black background pe..plzz white pen use karo....black k upr red dikha nehi jata....
Btw.thanks..very much thanks..mujhe structure samaj agaya....thanks harry dada
Sir ye sab sab data to ham normally print kara sakte he then ham struct ka use kyo kar te he
Mr.Harry Aap yeh btayein k auto students generate hoty jayein .....??? Yeh kesy ho ga Kindly btana Thanks
#include
#include
struct Student
{
int roll_no;
int marks;
char fav_char;
} harshal, chinmay, shubham;
int main()
{
harshal.roll_no = 1;
chinmay.roll_no = 2;
shubham.roll_no = 3;
harshal.marks = 85;
chinmay.marks = 89;
shubham.marks = 79;
harshal.fav_char = 'H';
chinmay.fav_char = 'C';
shubham.fav_char = 'S';
printf("harshal's roll_no is %d
", harshal.roll_no);
printf("harshal got %d marks
", harshal.marks);
printf("harshal's favrourite character is %c
", harshal.fav_char);
printf("
");
printf("chinmay's roll_no is %d
", chinmay.roll_no);
printf("chinmay got %d marks
", chinmay.marks);
printf("chinmay's favrourite character is %c
", chinmay.fav_char);
printf("
");
printf("Shubham's roll_no is %d
", shubham.roll_no);
printf("shubham got %d marks
", shubham.marks);
printf("shubham's favrourite character is %c
", shubham.fav_char);
printf("
");
printf("3 of them are brothers and they study in one school
");
printf("
");
return 0;
}
hellow for loop may structure dikhao na sir .
Learning on UA-cam with teachers like you is way more helpful and effective than wasting time in college and not understanding damn thing
structure se time ka programme kaise banay bhaiya
Bhai ne mere marks sabse kam diye
I had loved it...your explanation is too good ...
Keep it up bro .....
#include
#include
struct student
{
char name[20];
int id;
int marks;
};
int main()
{
char arr[][100] = {"Now the details that you have given of both harry and larry will be shown
"
,"Harry's details are : ", "Larry's details are : "};
char str[20];
int arr1[4];
struct student harry, larry;
printf("Enter harry's full name : ");
gets(str);
strcpy(harry.name, str);
harry.id = 1334;
harry.marks = 449;
printf("Enter larry's full name : ");
gets(str);
strcpy(larry.name, str);
larry.id = 1335;
larry.marks = 500;
printf("
%s
%s
", arr[0], arr[1]);
printf("\tThe name is %s.
\tHis id number is : %d.
\tHis marks are : %d.
", harry.name, harry.id, harry.marks);
printf("%s
", arr[2]);
printf("\tThe name is %s.
\tHis id number is : %d.
\tHis marks are : %d.
", larry.name, larry.id, larry.marks);
return 0;
}
#include
struct student
{
int id;
float marks;
char fav_char;
};
void main()
{
struct student harry, ravi, shubham;
harry.id = 1;
ravi.id = 2;
shubham.id = 3;
harry.marks = 66;
ravi.marks = 466;
shubham.marks = 466;
harry.fav_char = 'p';
ravi.fav_char = 'p';
shubham.fav_char = 'p';
printf("
harry id is %d", harry.id);
printf("
harry got %.2f marks ", harry.marks);
printf("
harry's fvt character is %c", harry.fav_char);
printf("
ravi id is %d ", harry.id);
printf("
harry got %.2f marks ", harry.marks);
printf("
harry's fvt character is %c", harry.fav_char);
printf("
shubham id is %d", shubham.id);
printf("
shubham got %.2f marks ", shubham.marks);
printf("
shubham's fvt character is %c", shubham.fav_char);
}
If you use array of structures than using for loop it will be easy. it will save some lines.
I love you so much sir 💝💝💝💝💝💝💝💝❤️❤️❤️❤️❤️
Quick quiz answer:
#include
#include
struct student
{
char name[10];
int roll_no;
int marks;
}s[5];
int main()
{
for(int i=0;i
What is the use of declaring variables in the small brackets like :
void main(int a)
Soaib aslam
Is ma strcpy use kia baghair char sa name kesa print kre ga