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

КОМЕНТАРІ • 391

  • @A2MOTIVATION-p7w
    @A2MOTIVATION-p7w 3 роки тому +211

    Your teaching is more beautiful than my girlfroend

  • @Sirjiknp
    @Sirjiknp 4 роки тому +51

    Come to teach in my college also 😂 you are great #harry

  • @ritikthakur4921
    @ritikthakur4921 4 роки тому +181

    Underrated channel.
    Great explanation. 👍🏻

    • @Robin4lyf
      @Robin4lyf 11 місяців тому +6

      well now its of 4+ million subs

    • @ashmitdas2078
      @ashmitdas2078 7 місяців тому +4

      well now its of 5+ million subs@@Robin4lyf 😅

    • @spidyffexe
      @spidyffexe 5 місяців тому

      @@ashmitdas2078 well now about to 6m

    • @SaisujithNagamalla
      @SaisujithNagamalla 4 місяці тому +5

      ​@@ashmitdas2078 now 6 million plus

  • @VanshPruthi-mk4pq
    @VanshPruthi-mk4pq 4 місяці тому +2

    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;
    }

  • @chiteez_____1562
    @chiteez_____1562 11 місяців тому +25

    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 :)

  • @RahulDas-qq1uv
    @RahulDas-qq1uv 3 роки тому +60

    phenomenal explanation , Highly recomended

  • @suryapratap2914
    @suryapratap2914 Рік тому +9

    whenever thiings get difficult
    HARRY BHAI __ aap bs bne raho ,sunte rahiye dhyan se end tak ---
    and in the end every thing became easy🙃😉

  • @sumitrana3048
    @sumitrana3048 3 роки тому +8

    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

  • @whoareyou45678
    @whoareyou45678 2 роки тому +21

    Generally I am not prefer ppt base lectures but you explanation is enough
    To change my thoughts

  • @RAJPATRA_Corporate
    @RAJPATRA_Corporate 3 роки тому +98

    I am studying in brainware of software engineering course
    But still your learning methods is world class❤️

  • @YashDEVELOPER12
    @YashDEVELOPER12 4 роки тому +14

    Very helpful vdo sir..
    Structure is so important concept in c .. aur aapne bahut easily samjhaaya hai isko..
    Amazing.. thanks u so much sir

  • @snehashisratna9074
    @snehashisratna9074 5 років тому +7

    #feedback
    Algorithm and data structure ka video banaou please....😃

  • @reality9702
    @reality9702 Рік тому +4

    But, the problem is still there. 10,000 employees ka information agar store karna ho to kya 10,000 variables declare karna padega ??

  • @shivanshgoyal310
    @shivanshgoyal310 4 роки тому +16

    Amazing explanation 🥺🥺💖💖

  • @oqant0424
    @oqant0424 4 роки тому +18

    GREAT WORK MAN ....KEEP THE GD WORK DOING

  • @BrightEngineer001
    @BrightEngineer001 2 місяці тому +3

    Justice for shubham

  • @aakashkasturiyavlogs
    @aakashkasturiyavlogs 5 років тому +6

    #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;
    }

  • @anshirohilla4968
    @anshirohilla4968 2 роки тому +4

    Harry while explaining Rocket science: isme koi Rocket science nahi hai 😂

  • @sandeeppareek8941
    @sandeeppareek8941 4 роки тому +34

    // 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;
    }

  • @Amitvegada-t3v
    @Amitvegada-t3v 10 місяців тому +3

    Legend watching this vidio in 2023 😂😂

  • @sagarbhalke7352
    @sagarbhalke7352 5 років тому +2

    Ha harry bhai whatsapp no. Do no

  • @guptajicodes
    @guptajicodes 4 роки тому +17

    Sir, can we make more structure variables using for loop ?

    • @professorpoke
      @professorpoke Рік тому

      We have to use dynamic memory allocation in that case.

  • @official-hk9vx
    @official-hk9vx 5 років тому +3

    Harry bhai Ravi Or Shubham aapke best friend h kya😁

  • @raghavannaidu6931
    @raghavannaidu6931 4 роки тому +6

    Super Under-Rated Channel
    Love ur videos man
    superb explanation

  • @mrrabbit2913
    @mrrabbit2913 4 роки тому +4

    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;
    }

  • @gauravchaudhari9401
    @gauravchaudhari9401 3 роки тому +7

    Great Explain sir..,,You are the Best Explainer and Technical Teacher too...

  • @Subhankar_Ray_2008
    @Subhankar_Ray_2008 6 місяців тому +2

    Legend in 2024😂

  • @Axey04
    @Axey04 9 місяців тому +1

    Is it possible to declare another structure inside the structure and if at all possible then how can we access them ??

  • @prafulsinwalprafulsinwal3141
    @prafulsinwalprafulsinwal3141 2 роки тому +3

    Thanks!

  • @SanuDas-gd9md
    @SanuDas-gd9md 4 місяці тому +2

    Who watching this video in 2024 ❤😮

  • @sohelahmedkhan8756
    @sohelahmedkhan8756 2 роки тому +2

    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

  • @harishpanpaliya5507
    @harishpanpaliya5507 4 роки тому +14

    Amazing explanation
    But please increase the font size it is very difficulty to see the code in mobile

  • @beginners27
    @beginners27 3 місяці тому +2

    Legend watch in 2024 😂😂😂

    • @SN1638
      @SN1638 3 місяці тому +1

      Aap webdev ke bad c++ language sikh Rahi ho kya🤔

  • @sarveshdevrukhakar
    @sarveshdevrukhakar 3 роки тому +5

    # Can we declare \ initialise the 'function ' in structure ?
    And did you forgot about pointers in structure ?

  • @krishkanojia2850
    @krishkanojia2850 4 роки тому +5

    Great method of explaining.

  • @ankursapariya1738
    @ankursapariya1738 4 роки тому +3

    Challenge Accepted.

  • @bhagatalisha
    @bhagatalisha 2 роки тому +1

    Bhaiya, apko apni book likhni chahiye ek ♥️

  • @arjunmehta8272
    @arjunmehta8272 4 роки тому +4

    Love ur videos bro 😊😊❤️❤️❤️

  • @rahulmore1993
    @rahulmore1993 3 роки тому +5

    thanks for u r efforts harry

  • @Fitness_journey988
    @Fitness_journey988 2 роки тому +1

    Thank u Sooo muCh Harry Bro
    Issi trah smjhate rahain
    AllaH aap ko or behtar bnaye Ameen
    From Pakistan🇵🇰🥰

  • @rheumaticharm9551
    @rheumaticharm9551 3 роки тому +1

    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.

    • @spacepacehut3265
      @spacepacehut3265 2 роки тому

      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

  • @aradhyastore8448
    @aradhyastore8448 2 роки тому +2

    structure seems like objects in OOPs of other languages in which we have create an object and can change it properties

  • @devsinghpawar8407
    @devsinghpawar8407 3 роки тому +1

    Yo yo kya maza tha yar is video pa

  • @tanmay_b_07
    @tanmay_b_07 3 місяці тому +1

    07-06-24

  • @anmolpurwar5675
    @anmolpurwar5675 2 роки тому +2

    #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);
    }

  • @devanshsanghi2380
    @devanshsanghi2380 9 місяців тому +1

    This video is better than my university’s 8 sessions of 2 hours each…. 25minutes>>16hours

  • @likhanbiswas5077
    @likhanbiswas5077 3 місяці тому

    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);

  • @soumyashiskarmakar
    @soumyashiskarmakar 5 років тому +4

    Java tutorial please!

  • @shivamshrivastava5019
    @shivamshrivastava5019 4 роки тому +4

    #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;
    }

  • @Bapu_369
    @Bapu_369 Рік тому +1

    thanks a lot

  • @inayatullah2983
    @inayatullah2983 2 роки тому +2

    Sir ap ki video Itni achi aur high level ke hain ki college main programming main main sab se tez hoon thanks

  • @pratiks29
    @pratiks29 4 роки тому +2

    Harry bhai bohot mast samjhaya tune ekdum clear kar dia 👍
    Pura playlist bohot sahi he thank you bhai

  • @aarzoo2302
    @aarzoo2302 3 роки тому +2

    Geat explanation sir thankyouuuuu!!

  • @rishabhshah5619
    @rishabhshah5619 3 роки тому +1

    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?

  • @janhvitolambe3331
    @janhvitolambe3331 4 роки тому +3

    Harry bhai✨🔥🔥

  • @notherealworld3260
    @notherealworld3260 2 роки тому +1

    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;
    }

  • @ayushgupta1399
    @ayushgupta1399 3 роки тому +1

    💛

  • @mohammedashraftaj8595
    @mohammedashraftaj8595 3 роки тому +2

    Explain the Array of structure and Array within a structure

  • @pranjalgupta3295
    @pranjalgupta3295 4 роки тому +1

    harry bhai data structure ki playlist bhi bana do..plz

  • @kavyagupta_3232
    @kavyagupta_3232 2 роки тому

    Quick Quiz Completed , code in reply
    Mission Accomplished

  • @TodayContestSolution
    @TodayContestSolution 2 роки тому

    25:55 how solve geeks for geek problem question not understand and diff like book questions

  • @COYN-F
    @COYN-F Рік тому

    sir agr mujhe direct structure start kru then cpp start kru to age pro nhi ayegi na

  • @japesh8942
    @japesh8942 2 роки тому +1

    Why cannot we print string without using strncpy ?.

  • @z7edit5
    @z7edit5 3 роки тому +3

    Bro you ROCK 💀🦋

  • @xito_xito4964
    @xito_xito4964 3 роки тому +1

    Make simple and short,

  • @sahil1053
    @sahil1053 3 роки тому

    teach some more advance things .... these are just basic things 🙄🙄

  • @spoorthishet1196
    @spoorthishet1196 2 роки тому +1

    you are just awesome...!!! made it very simple..

  • @RohanDasRD
    @RohanDasRD 5 років тому +2

    30k soon

  • @nitinbhaskar5067
    @nitinbhaskar5067 Рік тому

    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);
    }

  • @Mehul11doru
    @Mehul11doru Рік тому

    @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 🙏🙋‍♂️

    • @Ayush-_-007
      @Ayush-_-007 Рік тому

      Konsa jamana may rehte hu Bhai 😁😂

  • @s.kgaming7933
    @s.kgaming7933 4 місяці тому

    what is void print() and what is the use of it?
    what is print();

  • @parvezahmad4365
    @parvezahmad4365 2 роки тому +1

    Very nice explanation 😀

  • @anushkabhat5313
    @anushkabhat5313 Рік тому

    Can you plz help to know how to access Playlist of this course

  • @victorb22622
    @victorb22622 5 місяців тому

    5:31 स्ट्रक्चर में fev charactor ka क्या मेल ,कोई ढंग का लेते😅

  • @AhmadRizviYT
    @AhmadRizviYT Рік тому +1

    Bohot ache videos banae hai

  • @SamarthDhameliya
    @SamarthDhameliya 4 місяці тому

    videos number 37 quick quiz solution

  • @adityafase6986
    @adityafase6986 2 роки тому

    Local and global tguk taraha se samjo na bhaiyya please

  • @fahedshaik6212
    @fahedshaik6212 3 роки тому +2

    Harry sir rocks 🤘

  • @ankeshkumar5753
    @ankeshkumar5753 4 роки тому

    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;
    }

  • @gouravsharma8137
    @gouravsharma8137 4 роки тому +1

    Why we are not using union in data structure instead to define nodes

  • @atharvakumar4425
    @atharvakumar4425 3 роки тому +1

    moj kar di such mein ❤❤

  • @jaiji7135
    @jaiji7135 11 місяців тому

    @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?

  • @accelerate8646
    @accelerate8646 2 роки тому

    ye kha te?? kyu itne underrated hai?? abhi tak 10 mil pe hona chahiye ta

  • @devrajbhattacharya7138
    @devrajbhattacharya7138 3 роки тому

    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

  • @feelings5236
    @feelings5236 2 роки тому

    Sir ye sab sab data to ham normally print kara sakte he then ham struct ka use kyo kar te he

  • @SohailKhan-vq1rz
    @SohailKhan-vq1rz 2 роки тому

    Mr.Harry Aap yeh btayein k auto students generate hoty jayein .....??? Yeh kesy ho ga Kindly btana Thanks

  • @MrTylerDurden35
    @MrTylerDurden35 4 роки тому

    #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;
    }

  • @vyasparth7220
    @vyasparth7220 2 роки тому

    hellow for loop may structure dikhao na sir .

  • @itsmoonsault
    @itsmoonsault Місяць тому

    Learning on UA-cam with teachers like you is way more helpful and effective than wasting time in college and not understanding damn thing

  • @patilshrikant4543
    @patilshrikant4543 2 роки тому

    structure se time ka programme kaise banay bhaiya

  • @Shubham-mp6og
    @Shubham-mp6og 3 роки тому +1

    Bhai ne mere marks sabse kam diye

  • @technicalsupport3865
    @technicalsupport3865 4 роки тому +2

    I had loved it...your explanation is too good ...
    Keep it up bro .....

  • @9caryamchaudhary700
    @9caryamchaudhary700 2 роки тому +1

    #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;
    }

  • @SahilKumar-ni7su
    @SahilKumar-ni7su 4 роки тому

    #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);
    }

  • @pratikkurade1270
    @pratikkurade1270 3 роки тому +8

    If you use array of structures than using for loop it will be easy. it will save some lines.

  • @kanishksolanki5949
    @kanishksolanki5949 4 місяці тому

    I love you so much sir 💝💝💝💝💝💝💝💝❤️❤️❤️❤️❤️

  • @Teenu
    @Teenu 2 роки тому

    Quick quiz answer:
    #include
    #include
    struct student
    {
    char name[10];
    int roll_no;
    int marks;
    }s[5];
    int main()
    {
    for(int i=0;i

  • @sweett8194
    @sweett8194 2 роки тому +1

    What is the use of declaring variables in the small brackets like :
    void main(int a)

  • @MrSoaib123
    @MrSoaib123 2 роки тому

    Soaib aslam

  • @armani3018
    @armani3018 Рік тому

    Is ma strcpy use kia baghair char sa name kesa print kre ga