68 - STRUCTURES & FUNCTIONS - C PROGRAMMING

  Рет қаралды 90,160

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

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.

Пікірлер: 142
@abby0910
@abby0910 4 жыл бұрын
Great job !! Your style of teaching makes it really easy to understand. Thank you.
@virajadake2107
@virajadake2107 2 ай бұрын
What a fantastic teacher u re sir ❤
@poojavmahalathkar4031
@poojavmahalathkar4031 4 жыл бұрын
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??
@NONAME-2246
@NONAME-2246 3 жыл бұрын
I like your teaching style
@NehaSharma_nsds
@NehaSharma_nsds 6 ай бұрын
Thank you sir ❤
@mahendrajuvanaboyina2780
@mahendrajuvanaboyina2780 5 жыл бұрын
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
@varevatalkies4853
@varevatalkies4853 7 жыл бұрын
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,
@krithikeshlovesmom7710
@krithikeshlovesmom7710 3 жыл бұрын
What is d function declaration we have to write for these three programs
@zamp7927
@zamp7927 6 жыл бұрын
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 жыл бұрын
videos around 15_20 min are okay
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
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.
@Riyaaa677
@Riyaaa677 2 жыл бұрын
Is it necessary that the argument of formal parameter should be different that from an actual valiable?
@rajendragurukar4986
@rajendragurukar4986 3 жыл бұрын
Your teaching is extraordinary marvelous sir
@chetankhatal716
@chetankhatal716 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 жыл бұрын
Hi Pls share me the error which you are getting while execution
@thisiscreatorjay
@thisiscreatorjay 4 жыл бұрын
You should use the return type of display function as void like void display (----------
@amarjitkon8590
@amarjitkon8590 5 жыл бұрын
Sir,I'm from Imphal.....I really love Ur teaching techniques and it helps me a lot. Thank u
@catherineeldridge3170
@catherineeldridge3170 4 жыл бұрын
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.
@kranthikumar-jo4to
@kranthikumar-jo4to 4 жыл бұрын
sir, if our rollno contains both int and char data type like 177a56 then how should we declare it sir??
@sundeepsaradhi
@sundeepsaradhi 4 жыл бұрын
Hi If data is alphanumeric the consider it as string and use character arrays to declare such type of data
@kranthikumar-jo4to
@kranthikumar-jo4to 4 жыл бұрын
ok sir
@saptarshidas6971
@saptarshidas6971 6 жыл бұрын
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.
@rajendragurukar4986
@rajendragurukar4986 3 жыл бұрын
Very nice sir your teaching
@mrugrajkumpavat1781
@mrugrajkumpavat1781 4 жыл бұрын
Hello sir you are not declaring structure definition so it will generate error. over all your tutorial is so good.
@mrugrajkumpavat1781
@mrugrajkumpavat1781 4 жыл бұрын
And also data type.. Please replay sir either I am right or wrong
@rhul0017
@rhul0017 6 жыл бұрын
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 жыл бұрын
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 6 жыл бұрын
hi sir can u explain add two complex numbers passing variable through structures
@udeshigamage6898
@udeshigamage6898 2 жыл бұрын
Thank you very much for the video its very helpful
@chaarumk
@chaarumk 6 жыл бұрын
It's very helpful sir. Thanks a lot :)
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
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.
@ESSharath
@ESSharath 4 жыл бұрын
🙏🙏🙏🙏🙏🙏🙏🙏💞💐💐💐u r the best teacher ever since
@thisiscreatorjay
@thisiscreatorjay 4 жыл бұрын
Sir in type1 program you use the display function but you didn't initialize the return value it so it is displayed the error
@pedroluna7391
@pedroluna7391 6 жыл бұрын
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.
@ashiqurrahman121
@ashiqurrahman121 6 жыл бұрын
Shouldn't we write int display (int a ,int b) As it's returning a value to main
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
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.
@sanaboinasatyanarayana7698
@sanaboinasatyanarayana7698 5 жыл бұрын
Sir should we write void before display in function definition? Please tell
@RidwanurRahmanextreme
@RidwanurRahmanextreme 4 жыл бұрын
Bow down to your teaching, sir.
@mahinfatima4124
@mahinfatima4124 4 жыл бұрын
It's very helpful ful
@sumanp1585
@sumanp1585 5 жыл бұрын
Thank you for your video it's will very helpful to us
@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
@happylifehappywork7543
@happylifehappywork7543 6 жыл бұрын
Have you video for the function returning pointers?
@umamaheshwari2065
@umamaheshwari2065 5 жыл бұрын
Is this procedure is same for c++ also by writing cin and cout?
@drum_titor
@drum_titor 6 жыл бұрын
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
@manik3441
@manik3441 4 жыл бұрын
In this program without display ,we execute or not
@sumithras4776
@sumithras4776 5 жыл бұрын
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.☺️
@rohith2758
@rohith2758 3 жыл бұрын
Great job sir
@mohaniyer9185
@mohaniyer9185 6 жыл бұрын
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.
@gururajkl6755
@gururajkl6755 5 жыл бұрын
Sir your an just amazing ! Amazing 👌
@masimbaashemusekiwa1793
@masimbaashemusekiwa1793 6 жыл бұрын
excellent indeed keep going
@saviramya7262
@saviramya7262 6 жыл бұрын
thq sir hw simple ur explaining these thq so much sir
@DhirajKumar-db5ol
@DhirajKumar-db5ol 4 жыл бұрын
Very nice sir ji🙏🙏🙏🙏
@govinth2462
@govinth2462 4 жыл бұрын
Sir we can use gets instead of scanf
@base2base217
@base2base217 6 жыл бұрын
You are amazing!
@gyanavisakkuru1329
@gyanavisakkuru1329 4 жыл бұрын
sir there is an error in the program u said passing individual member program
@yuvi12
@yuvi12 5 жыл бұрын
one doubt if u not declare function then how to u use function call display????
@rahulranjan-cj2ii
@rahulranjan-cj2ii 4 жыл бұрын
Sir, you didn't mention the function declaration in this video.
@vamsiyadav233
@vamsiyadav233 4 жыл бұрын
Yes sir ,without function declaration ...it is showing error
@ganeshmullu8493
@ganeshmullu8493 3 жыл бұрын
How to read student name.plz explain it sir
@epicentertainment5658
@epicentertainment5658 3 жыл бұрын
Sir you have missed to give s2 and *p ... Thanks for your program..
@jonathanchen7185
@jonathanchen7185 6 жыл бұрын
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.
@pallikondalohith9973
@pallikondalohith9973 3 жыл бұрын
Sir I like your video ❤️ but at last of the video can you do coding in pc.
@amskhadhiri4636
@amskhadhiri4636 5 жыл бұрын
hi sir,you did a mistake,u didnt said function prototype as void display(struct student *p);
@JayPatel-ou2ud
@JayPatel-ou2ud 2 жыл бұрын
Nice explanation sir 🙏🏻🙏🏻👏
@saikumargannavarapu1898
@saikumargannavarapu1898 6 жыл бұрын
isn't it necessary to declare a structure variable s2 initially???
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
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.
@jithinjnair6322
@jithinjnair6322 6 жыл бұрын
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??
@IrelandDiariesVK
@IrelandDiariesVK 3 жыл бұрын
Yes
@rameshreddy3189
@rameshreddy3189 5 жыл бұрын
Passing Individual members of a structure as parameters to functions,(function declaration ?
@chandu4764
@chandu4764 3 жыл бұрын
Sir. While defining you don't mention data tyoe??.. it is not necessary sir ?
@chandu4764
@chandu4764 3 жыл бұрын
And function declaration is also not done there ... plz any one clarify my doubt
@kantharajuhk9571
@kantharajuhk9571 3 жыл бұрын
Thank you so much sir .. I understood the concept
@konakallanagavenkatanikhil1353
@konakallanagavenkatanikhil1353 5 жыл бұрын
thank u very much for this useful information
@vishwanathkoliki4905
@vishwanathkoliki4905 4 жыл бұрын
sir we can write passing entire structure display(struct student s1)
@sundar3357
@sundar3357 5 жыл бұрын
thank you very much sir ....
@rsr9491
@rsr9491 5 жыл бұрын
Thank you so much sir and i grateful to you
@thirumaleshtelugu1143
@thirumaleshtelugu1143 5 жыл бұрын
Sir can you give us a real time example, where to use it and where not to use it. please do reply sir..
@sivasairakeshgontla2409
@sivasairakeshgontla2409 6 жыл бұрын
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.
@dixitbhelawe6025
@dixitbhelawe6025 4 жыл бұрын
warning: implicit declaration of function ‘display’ [-Wimplicit-function-declaration] display(&s1); this is the error for the type 2
@Akash-hx1ny
@Akash-hx1ny 4 жыл бұрын
You must declare the prototype of function before the main function in order to call the function inside the main function.
@siddharthmeena7087
@siddharthmeena7087 5 жыл бұрын
Sir tysm your lectures are very helpful
@arunaagt8229
@arunaagt8229 5 жыл бұрын
Thank you sir. Share more than this . Keep growing sir.
@madhavp6697
@madhavp6697 3 жыл бұрын
Tq mastaruu em cheptham intha kannaaa
@ShivaKumar-uc5io
@ShivaKumar-uc5io 4 жыл бұрын
Sir,can u explain about the topics of malloc,calloc,realloc,...
@abirsaha5452
@abirsaha5452 3 жыл бұрын
THANK YOU SIR
@sriyellammatallieducation127
@sriyellammatallieducation127 3 жыл бұрын
Thank you sir.tommorow exam sir
@e281tangy
@e281tangy 5 жыл бұрын
thanks for the video, but i wish you had captions...
@preethig5768
@preethig5768 3 жыл бұрын
Thank you so much sir 🤗
@mrFreakingGamer
@mrFreakingGamer 6 жыл бұрын
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.
@josephdaniel6703
@josephdaniel6703 4 жыл бұрын
Hi... What to do if a array of five numbers is present inside a structure struct data{ int arr[5]; }
@josephdaniel6703
@josephdaniel6703 4 жыл бұрын
How to pass that as argument
@santanumajhi322
@santanumajhi322 4 жыл бұрын
very good
@Jai_Bajrang_Bali1
@Jai_Bajrang_Bali1 6 жыл бұрын
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.
@LowescC
@LowescC 4 жыл бұрын
thanks much...
@govindalekhak1022
@govindalekhak1022 4 жыл бұрын
error: conflicting types for 'display', previous implicit declaration of 'display' was here in first program passing the members
@codebynilay9438
@codebynilay9438 4 жыл бұрын
You can solve that by declaring void display(int a, float b); before int main()
@saidivyag653
@saidivyag653 5 жыл бұрын
Thank you so much sir
@NagamaniNagamani-bu7fs
@NagamaniNagamani-bu7fs 2 жыл бұрын
Superb
@jkcabs4569
@jkcabs4569 2 жыл бұрын
Why can't I compile it?
@JeetneKiSanak
@JeetneKiSanak 3 жыл бұрын
sir where is the function declaration part
@siddhestripathy3258
@siddhestripathy3258 4 жыл бұрын
Arrow mark ?
@keerthivasang1178
@keerthivasang1178 6 жыл бұрын
nice sir Nice!!!!!!!!!!!!
@roystondsouza4886
@roystondsouza4886 3 жыл бұрын
what type of return (with or without return values) value is used in these 3 categories of structures & functions?
@PAVA1GKWORLD
@PAVA1GKWORLD 5 жыл бұрын
Thanks a lot, sir
@sumantkurse951
@sumantkurse951 4 жыл бұрын
How to write function declaration??
@satorogojou4487
@satorogojou4487 4 жыл бұрын
salute to you sir! thank you!
@pankajshimpi9579
@pankajshimpi9579 6 жыл бұрын
Sir we havent declared & initilised pointer
@k-budagalavyshnavi
@k-budagalavyshnavi 3 жыл бұрын
tqqq soo much sir😍🤩
@yarramneninikhil1299
@yarramneninikhil1299 4 жыл бұрын
Sir, I have taken string but I am not able to get output
@achuthan5025
@achuthan5025 5 жыл бұрын
awsome sir
@dakshvashishth7390
@dakshvashishth7390 4 жыл бұрын
Sir i am getting error conflicting types for function plzz someone tell me how to sort this error?
@naveenchowturu6661
@naveenchowturu6661 5 жыл бұрын
good man!!
@sharmakeshav07
@sharmakeshav07 6 жыл бұрын
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.
@deepapokhalekar7932
@deepapokhalekar7932 4 жыл бұрын
sir ,function hasn't declared
@mehrshy
@mehrshy 5 жыл бұрын
ur missing the prototype how do we do that boss
@mehrshy
@mehrshy 5 жыл бұрын
function protypoe
@rakshitagowda5689
@rakshitagowda5689 5 жыл бұрын
Tq soo much sir
@sadikalikaradiya1742
@sadikalikaradiya1742 6 жыл бұрын
Where is the structure declaration?
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi sadikali above the main function i have declared the structure.
@chandanboro8714
@chandanboro8714 5 жыл бұрын
sir..make video about linked list
69 - DIFFERENCE BETWEEN STRUCTURE & UNION - C PROGRAMMING
14:08
Sundeep Saradhi Kanthety
Рет қаралды 74 М.
67 - POINTERS TO STRUCTURES - C POGRAMMING
13:17
Sundeep Saradhi Kanthety
Рет қаралды 86 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 2,7 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,7 МЛН
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 6 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 13 МЛН
Structures and Functions (Part 1)
7:11
Neso Academy
Рет қаралды 193 М.
C_05 Structure of a C Program | Programming in C
21:14
Jenny's Lectures CS IT
Рет қаралды 1 МЛН
the cleanest feature in C that you've probably never heard of
8:13
Passing structures as arguments to functions in c
26:33
Sudhakar Atchala
Рет қаралды 4,3 М.
C_101 Function Pointers in C | Pointer to Function | C Programming Tutorials
18:04
Jenny's Lectures CS IT
Рет қаралды 136 М.
Structures and Union in C (Tamil) | C language in Tamil | Logic First Tamil
28:35
C_109 Structures in C - part 1| Introduction to Structures
14:42
Jenny's Lectures CS IT
Рет қаралды 442 М.
72 - READ & WRITE OPERATIONS ON FILES - C PROGRAMMING
20:49
Sundeep Saradhi Kanthety
Рет қаралды 95 М.
54 - FUNCTIONS - C PROGRAMMING
37:03
Sundeep Saradhi Kanthety
Рет қаралды 362 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 2,7 МЛН