68 - STRUCTURES & FUNCTIONS - C PROGRAMMING

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2017
  • Passing structures as parameters to functions
    There are 3 categories
    1) Passing Individual members of a structure as parameters to functions
    2) Passing Structure variable as parameters to functions
    3) Passing address of a structure variable as a parameter to functions.

ความคิดเห็น • 141

  • @abby0910
    @abby0910 4 ปีที่แล้ว +9

    Great job !! Your style of teaching makes it really easy to understand. Thank you.

  • @rajendragurukar4986
    @rajendragurukar4986 3 ปีที่แล้ว

    Your teaching is extraordinary marvelous sir

  • @RidwanurRahmanextreme
    @RidwanurRahmanextreme 4 ปีที่แล้ว

    Bow down to your teaching, sir.

  • @gururajkl6755
    @gururajkl6755 5 ปีที่แล้ว +2

    Sir your an just amazing ! Amazing 👌

  • @arunaagt8229
    @arunaagt8229 5 ปีที่แล้ว

    Thank you sir. Share more than this . Keep growing sir.

  • @base2base217
    @base2base217 5 ปีที่แล้ว +1

    You are amazing!

  • @mahendrajuvanaboyina2780
    @mahendrajuvanaboyina2780 5 ปีที่แล้ว +3

    sir your way of explanation so good could you please upload videos on data structures ............we hope it will happen in soon thank you sir

  • @amarjitkon8590
    @amarjitkon8590 4 ปีที่แล้ว +2

    Sir,I'm from Imphal.....I really love Ur teaching techniques and it helps me a lot. Thank u

  • @pedroluna7391
    @pedroluna7391 6 ปีที่แล้ว +2

    Great Video! Really helped me understand better thank you!

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi Luna
      thanks for watching my sessions and supporting our channel.
      keep following our channel.

  • @poojavmahalathkar4031
    @poojavmahalathkar4031 4 ปีที่แล้ว +3

    lectures are too good and method of teaching is excellent, thank u for all the class. there is no return type for display while displaying rollno and percentage, is it that way??

  • @chandamalakiran3800
    @chandamalakiran3800 5 ปีที่แล้ว

    Sir ,you have said to access members of structure we should use arrow operator(pminus greater)and in ur example u took only one structure variable so u used p arrow roolno ,if there more structure variable what should we do

  • @varevatalkies4853
    @varevatalkies4853 6 ปีที่แล้ว +14

    Thank u so much sir, please upload videos on files ,type definition, dynamic memory of location sir, please sir,make it fast sir, my exams are coming soon sir, please sir,

  • @kantharajuhk9571
    @kantharajuhk9571 3 ปีที่แล้ว

    Thank you so much sir .. I understood the concept

  • @ESSharath
    @ESSharath 4 ปีที่แล้ว

    🙏🙏🙏🙏🙏🙏🙏🙏💞💐💐💐u r the best teacher ever since

  • @satorogojou4487
    @satorogojou4487 4 ปีที่แล้ว

    salute to you sir! thank you!

  • @sumanp1585
    @sumanp1585 5 ปีที่แล้ว

    Thank you for your video it's will very helpful to us

  • @NONAME-2246
    @NONAME-2246 3 ปีที่แล้ว

    I like your teaching style

  • @masimbaashemusekiwa1793
    @masimbaashemusekiwa1793 5 ปีที่แล้ว +1

    excellent indeed keep going

  • @saptarshidas6971
    @saptarshidas6971 6 ปีที่แล้ว +2

    Nice one sir it really helped me to build my concept keep it up sir

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi saptarshi
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @chaarumk
    @chaarumk 6 ปีที่แล้ว +6

    It's very helpful sir. Thanks a lot :)

    • @sundeepsaradhi
      @sundeepsaradhi  5 ปีที่แล้ว +3

      Hi manjuraj
      Thanks for your interest towards our channel and share my sessions with your friends and keep following our channel and don't forget to subscribe to our channel.

  • @konakallanagavenkatanikhil1353
    @konakallanagavenkatanikhil1353 5 ปีที่แล้ว

    thank u very much for this useful information

  • @saviramya7262
    @saviramya7262 5 ปีที่แล้ว

    thq sir hw simple ur explaining these thq so much sir

  • @siddharthmeena7087
    @siddharthmeena7087 5 ปีที่แล้ว

    Sir tysm your lectures are very helpful

  • @umamaheshwari2065
    @umamaheshwari2065 4 ปีที่แล้ว

    Is this procedure is same for c++ also by writing cin and cout?

  • @sanaboinasatyanarayana7698
    @sanaboinasatyanarayana7698 4 ปีที่แล้ว

    Sir should we write void before display in function definition? Please tell

  • @Riyaaa677
    @Riyaaa677 2 ปีที่แล้ว

    Is it necessary that the argument of formal parameter should be different that from an actual valiable?

  • @krithikeshlovesmom7710
    @krithikeshlovesmom7710 3 ปีที่แล้ว +1

    What is d function declaration we have to write for these three programs

  • @zamp7927
    @zamp7927 6 ปีที่แล้ว +2

    a bit longer but very thorough explanation indeed. very amazing..my suggestion would be make it a bit shorter but not that much that u will miss the nice way of your explanation.

    • @zamp7927
      @zamp7927 6 ปีที่แล้ว +1

      videos around 15_20 min are okay

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      HI ALI
      sure and thanks for your suggestion
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @rsr9491
    @rsr9491 5 ปีที่แล้ว

    Thank you so much sir and i grateful to you

  • @udeshigamage6898
    @udeshigamage6898 2 ปีที่แล้ว

    Thank you very much for the video its very helpful

  • @yuvi12
    @yuvi12 5 ปีที่แล้ว

    one doubt if u not declare function then how to u use function call display????

  • @thisiscreatorjay
    @thisiscreatorjay 4 ปีที่แล้ว +1

    Sir in type1 program you use the display function but you didn't initialize the return value it so it is displayed the error

  • @naveenchowturu6661
    @naveenchowturu6661 4 ปีที่แล้ว

    good man!!

  • @jonathanchen7185
    @jonathanchen7185 6 ปีที่แล้ว +2

    keep it up! great teacher

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi jonathan
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

  • @JayPatel-ou2ud
    @JayPatel-ou2ud 2 ปีที่แล้ว

    Nice explanation sir 🙏🏻🙏🏻👏

  • @rohith2758
    @rohith2758 2 ปีที่แล้ว +1

    Great job sir

  • @keerthivasang1178
    @keerthivasang1178 6 ปีที่แล้ว +1

    nice sir Nice!!!!!!!!!!!!

  • @PAVA1GKWORLD
    @PAVA1GKWORLD 5 ปีที่แล้ว

    Thanks a lot, sir

  • @mohaniyer9185
    @mohaniyer9185 6 ปีที่แล้ว +1

    good teaching .understood clearly

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi mohan
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @rameshreddy3189
    @rameshreddy3189 5 ปีที่แล้ว

    Passing Individual members of a structure as parameters to functions,(function declaration ?

  • @manik3441
    @manik3441 4 ปีที่แล้ว

    In this program without display ,we execute or not

  • @chetankhatal716
    @chetankhatal716 5 ปีที่แล้ว +5

    Sir, Your programs which are written in this tutorial not executing properly..??? please let me know how to implement it properly on the PC...?

    • @sundeepsaradhi
      @sundeepsaradhi  5 ปีที่แล้ว +1

      Hi
      Pls share me the error which you are getting while execution

    • @thisiscreatorjay
      @thisiscreatorjay 4 ปีที่แล้ว +2

      You should use the return type of display function as void like
      void display (----------

  • @happylifehappywork7543
    @happylifehappywork7543 5 ปีที่แล้ว

    Have you video for the function returning pointers?

  • @catherineeldridge3170
    @catherineeldridge3170 4 ปีที่แล้ว +1

    English was hard to understand, recommend captions for sure, it is the number one reason I pass on some of these programming videos simply because I can't understand your accents. But the content was solid, well organized and really helped me grasp some things I wasn't understanding in class.

  • @rajendragurukar4986
    @rajendragurukar4986 3 ปีที่แล้ว

    Very nice sir your teaching

  • @NehaSharma_nsds
    @NehaSharma_nsds 2 หลายเดือนก่อน +1

    Thank you sir ❤

  • @mrFreakingGamer
    @mrFreakingGamer 6 ปีที่แล้ว +1

    Nice release sir ! well explained

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi anas
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

  • @DhirajKumar-db5ol
    @DhirajKumar-db5ol 4 ปีที่แล้ว +1

    Very nice sir ji🙏🙏🙏🙏

  • @Ui_Backend_Engineer
    @Ui_Backend_Engineer 6 ปีที่แล้ว +1

    thank you sir for this great lecture

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi sarvan
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @e281tangy
    @e281tangy 5 ปีที่แล้ว

    thanks for the video, but i wish you had captions...

  • @ashiqurrahman121
    @ashiqurrahman121 6 ปีที่แล้ว +2

    Shouldn't we write int display (int a ,int b)
    As it's returning a value to main

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      hi rahman
      you can write it
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @sundar3357
    @sundar3357 4 ปีที่แล้ว

    thank you very much sir ....

  • @gyanavisakkuru1329
    @gyanavisakkuru1329 4 ปีที่แล้ว +1

    sir there is an error in the program u said passing individual member program

  • @vishwanathkoliki4905
    @vishwanathkoliki4905 4 ปีที่แล้ว

    sir we can write passing entire structure
    display(struct student s1)

  • @saidivyag653
    @saidivyag653 5 ปีที่แล้ว

    Thank you so much sir

  • @achuthan5025
    @achuthan5025 5 ปีที่แล้ว

    awsome sir

  • @mahinfatima4124
    @mahinfatima4124 4 ปีที่แล้ว

    It's very helpful ful

  • @LowescC
    @LowescC 4 ปีที่แล้ว

    thanks much...

  • @preethig5768
    @preethig5768 3 ปีที่แล้ว

    Thank you so much sir 🤗

  • @NagamaniNagamani-bu7fs
    @NagamaniNagamani-bu7fs 2 ปีที่แล้ว

    Superb

  • @rhul0017
    @rhul0017 6 ปีที่แล้ว +2

    is it really necessary to return the value?am asking this because in main function u haven't wrote any output statements??

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      hi rahul
      thats not required but i have return nothing just i have mentioned only return. so nothing will be returned to the main function. If it is not required you need not mention the return statement.
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

    • @saviramya7262
      @saviramya7262 5 ปีที่แล้ว

      hi sir can u explain add two complex numbers passing variable through structures

  • @abirsaha5452
    @abirsaha5452 2 ปีที่แล้ว

    THANK YOU SIR

  • @amskhadhiri4636
    @amskhadhiri4636 5 ปีที่แล้ว +2

    hi sir,you did a mistake,u didnt said function prototype as void display(struct student *p);

  • @dakshvashishth7390
    @dakshvashishth7390 3 ปีที่แล้ว

    Sir i am getting error conflicting types for function plzz someone tell me how to sort this error?

  • @thirumaleshtelugu1143
    @thirumaleshtelugu1143 4 ปีที่แล้ว

    Sir can you give us a real time example, where to use it and where not to use it. please do reply sir..

  • @drum_titor
    @drum_titor 5 ปีที่แล้ว

    sir, aren't we supposed to declare the display function above the main function as well? in all the three programs we haven't declared display function above the main function but we have made a function call and we have also defined the function. please clarify the doubt at the earliest. thank-you sir. also sir, your videos have proved to be very useful for my understanding of the C programming language.

    • @Varma_Vlogs18
      @Varma_Vlogs18 3 ปีที่แล้ว

      S sir has to declare display above main function in order to use it

  • @madhavp6697
    @madhavp6697 3 ปีที่แล้ว

    Tq mastaruu em cheptham intha kannaaa

  • @mrugrajkumpavat1781
    @mrugrajkumpavat1781 4 ปีที่แล้ว +1

    Hello sir you are not declaring structure definition so it will generate error. over all your tutorial is so good.

    • @mrugrajkumpavat1781
      @mrugrajkumpavat1781 4 ปีที่แล้ว +1

      And also data type.. Please replay sir either I am right or wrong

  • @jithinjnair6322
    @jithinjnair6322 5 ปีที่แล้ว

    What if the structure contains a character array? Eg:name[20].How can we access that variable in called function, using pointer? Printf("%s", p->name)-this will work??

  • @kranthikumar-jo4to
    @kranthikumar-jo4to 3 ปีที่แล้ว +2

    sir, if our rollno contains both int and char data type like 177a56 then how should we declare it sir??

    • @sundeepsaradhi
      @sundeepsaradhi  3 ปีที่แล้ว

      Hi
      If data is alphanumeric the consider it as string and use character arrays to declare such type of data

    • @kranthikumar-jo4to
      @kranthikumar-jo4to 3 ปีที่แล้ว

      ok sir

  • @ShivaKumar-uc5io
    @ShivaKumar-uc5io 4 ปีที่แล้ว

    Sir,can u explain about the topics of malloc,calloc,realloc,...

  • @josephdaniel6703
    @josephdaniel6703 4 ปีที่แล้ว

    Hi... What to do if a array of five numbers is present inside a structure
    struct data{
    int arr[5];
    }

  • @saikumargannavarapu1898
    @saikumargannavarapu1898 6 ปีที่แล้ว +1

    isn't it necessary to declare a structure variable s2 initially???

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      hi sai
      no need to declare s2 in main function because we are not using it in main function. Here we are passing the structure variable as parameter to the function so we need to declare structure variable as parameter in display function so that the values of parameter in function call(s1) will be copied to the parameter in function definition(s2).
      Hope your doubt has been clarified.

  • @sivasairakeshgontla2409
    @sivasairakeshgontla2409 6 ปีที่แล้ว +1

    Sir please upload video on allocation of memory and holes in structure

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi siva definitely i will try to upload them soon.

  • @yarramneninikhil1299
    @yarramneninikhil1299 4 ปีที่แล้ว

    Sir, I have taken string but I am not able to get output

  • @govinth2462
    @govinth2462 4 ปีที่แล้ว

    Sir we can use gets instead of scanf

  • @dixitbhelawe6025
    @dixitbhelawe6025 4 ปีที่แล้ว +1

    warning: implicit declaration of function ‘display’ [-Wimplicit-function-declaration]
    display(&s1);
    this is the error for the type 2

    • @Akash-hx1ny
      @Akash-hx1ny 3 ปีที่แล้ว

      You must declare the prototype of function before the main function in order to call the function inside the main function.

  • @santanumajhi322
    @santanumajhi322 4 ปีที่แล้ว

    very good

  • @rahulranjan-cj2ii
    @rahulranjan-cj2ii 4 ปีที่แล้ว +2

    Sir, you didn't mention the function declaration in this video.

    • @vamsiyadav233
      @vamsiyadav233 3 ปีที่แล้ว

      Yes sir ,without function declaration ...it is showing error

  • @k-budagalavyshnavi
    @k-budagalavyshnavi 3 ปีที่แล้ว

    tqqq soo much sir😍🤩

  • @rakshitagowda5689
    @rakshitagowda5689 5 ปีที่แล้ว

    Tq soo much sir

  • @sumantkurse951
    @sumantkurse951 4 ปีที่แล้ว

    How to write function declaration??

  • @sumithras4776
    @sumithras4776 5 ปีที่แล้ว +1

    void func(Struct node ** head , int value)
    here ** refers to what sir?

    • @sundeepsaradhi
      @sundeepsaradhi  5 ปีที่แล้ว

      Hi
      It receives address of head which is nothing but pointer to the first node.

    • @sumithras4776
      @sumithras4776 5 ปีที่แล้ว

      @@sundeepsaradhi Thanks for your response sir.☺️

  • @sriyellammatallieducation127
    @sriyellammatallieducation127 3 ปีที่แล้ว

    Thank you sir.tommorow exam sir

  • @pankajshimpi9579
    @pankajshimpi9579 5 ปีที่แล้ว

    Sir we havent declared & initilised pointer

  • @govindalekhak1022
    @govindalekhak1022 4 ปีที่แล้ว

    error: conflicting types for 'display',
    previous implicit declaration of 'display' was here in first program passing the members

    • @codebynilay9438
      @codebynilay9438 3 ปีที่แล้ว

      You can solve that by declaring void display(int a, float b); before int main()

  • @pallikondalohith9973
    @pallikondalohith9973 2 ปีที่แล้ว

    Sir I like your video ❤️ but at last of the video can you do coding in pc.

  • @chandu4764
    @chandu4764 2 ปีที่แล้ว

    Sir. While defining you don't mention data tyoe??.. it is not necessary sir ?

    • @chandu4764
      @chandu4764 2 ปีที่แล้ว

      And function declaration is also not done there ... plz any one clarify my doubt

  • @gilfordsenderayi1770
    @gilfordsenderayi1770 5 ปีที่แล้ว

    l like it..

  • @sharmakeshav07
    @sharmakeshav07 6 ปีที่แล้ว +1

    amazing

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi keshav
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

  • @roystondsouza4886
    @roystondsouza4886 3 ปีที่แล้ว

    what type of return (with or without return values) value is used in these 3 categories of structures & functions?

  • @epicentertainment5658
    @epicentertainment5658 3 ปีที่แล้ว

    Sir you have missed to give s2 and *p ...
    Thanks for your program..

  • @chandanboro8714
    @chandanboro8714 5 ปีที่แล้ว

    sir..make video about linked list

  • @rameshreddy3189
    @rameshreddy3189 5 ปีที่แล้ว

    function declaration miss ayindhi sir, declaration comment lo pettandi sir

  • @ganeshmullu8493
    @ganeshmullu8493 3 ปีที่แล้ว +1

    How to read student name.plz explain it sir

  • @siddhestripathy3258
    @siddhestripathy3258 4 ปีที่แล้ว

    Arrow mark ?

  • @rajveerkunwar7002
    @rajveerkunwar7002 2 ปีที่แล้ว

    sir where is the function declaration part

  • @jkcabs4569
    @jkcabs4569 2 ปีที่แล้ว

    Why can't I compile it?

  • @binaya3223
    @binaya3223 4 ปีที่แล้ว

    Visit Nepal 2020

  • @mehrshy
    @mehrshy 4 ปีที่แล้ว

    ur missing the prototype how do we do that boss

    • @mehrshy
      @mehrshy 4 ปีที่แล้ว

      function protypoe