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.
Great job !! Your style of teaching makes it really easy to understand. Thank you.
Your teaching is extraordinary marvelous sir
Bow down to your teaching, sir.
Sir your an just amazing ! Amazing 👌
Thank you sir. Share more than this . Keep growing sir.
You are amazing!
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
Sir,I'm from Imphal.....I really love Ur teaching techniques and it helps me a lot. Thank u
Great Video! Really helped me understand better thank you!
hi Luna
thanks for watching my sessions and supporting our channel.
keep following our channel.
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??
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
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,
Thank you so much sir .. I understood the concept
🙏🙏🙏🙏🙏🙏🙏🙏💞💐💐💐u r the best teacher ever since
salute to you sir! thank you!
Thank you for your video it's will very helpful to us
I like your teaching style
excellent indeed keep going
Nice one sir it really helped me to build my concept keep it up sir
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.
It's very helpful sir. Thanks a lot :)
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.
thank u very much for this useful information
thq sir hw simple ur explaining these thq so much sir
Sir tysm your lectures are very helpful
Is this procedure is same for c++ also by writing cin and cout?
Sir should we write void before display in function definition? Please tell
Is it necessary that the argument of formal parameter should be different that from an actual valiable?
What is d function declaration we have to write for these three programs
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.
videos around 15_20 min are okay
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.
Thank you so much sir and i grateful to you
Thank you very much for the video its very helpful
one doubt if u not declare function then how to u use function call display????
Sir in type1 program you use the display function but you didn't initialize the return value it so it is displayed the error
good man!!
keep it up! great teacher
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.
Nice explanation sir 🙏🏻🙏🏻👏
Great job sir
nice sir Nice!!!!!!!!!!!!
Thanks a lot, sir
good teaching .understood clearly
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.
Passing Individual members of a structure as parameters to functions,(function declaration ?
In this program without display ,we execute or not
Sir, Your programs which are written in this tutorial not executing properly..??? please let me know how to implement it properly on the PC...?
Hi
Pls share me the error which you are getting while execution
You should use the return type of display function as void like
void display (----------
Have you video for the function returning pointers?
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.
Very nice sir your teaching
Thank you sir ❤
Nice release sir ! well explained
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.
Very nice sir ji🙏🙏🙏🙏
thank you sir for this great lecture
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.
thanks for the video, but i wish you had captions...
Shouldn't we write int display (int a ,int b)
As it's returning a value to main
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.
thank you very much sir ....
sir there is an error in the program u said passing individual member program
sir we can write passing entire structure
display(struct student s1)
Thank you so much sir
awsome sir
It's very helpful ful
thanks much...
Thank you so much sir 🤗
Superb
is it really necessary to return the value?am asking this because in main function u haven't wrote any output statements??
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.
hi sir can u explain add two complex numbers passing variable through structures
THANK YOU SIR
hi sir,you did a mistake,u didnt said function prototype as void display(struct student *p);
Sir i am getting error conflicting types for function plzz someone tell me how to sort this error?
Sir can you give us a real time example, where to use it and where not to use it. please do reply sir..
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.
S sir has to declare display above main function in order to use it
Tq mastaruu em cheptham intha kannaaa
Hello sir you are not declaring structure definition so it will generate error. over all your tutorial is so good.
And also data type.. Please replay sir either I am right or wrong
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??
Yes
sir, if our rollno contains both int and char data type like 177a56 then how should we declare it sir??
Hi
If data is alphanumeric the consider it as string and use character arrays to declare such type of data
ok sir
Sir,can u explain about the topics of malloc,calloc,realloc,...
Hi... What to do if a array of five numbers is present inside a structure
struct data{
int arr[5];
}
How to pass that as argument
isn't it necessary to declare a structure variable s2 initially???
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.
Sir please upload video on allocation of memory and holes in structure
hi siva definitely i will try to upload them soon.
Sir, I have taken string but I am not able to get output
Sir we can use gets instead of scanf
warning: implicit declaration of function ‘display’ [-Wimplicit-function-declaration]
display(&s1);
this is the error for the type 2
You must declare the prototype of function before the main function in order to call the function inside the main function.
very good
Sir, you didn't mention the function declaration in this video.
Yes sir ,without function declaration ...it is showing error
tqqq soo much sir😍🤩
Tq soo much sir
How to write function declaration??
void func(Struct node ** head , int value)
here ** refers to what sir?
Hi
It receives address of head which is nothing but pointer to the first node.
@@sundeepsaradhi Thanks for your response sir.☺️
Thank you sir.tommorow exam sir
Sir we havent declared & initilised pointer
error: conflicting types for 'display',
previous implicit declaration of 'display' was here in first program passing the members
You can solve that by declaring void display(int a, float b); before int main()
Sir I like your video ❤️ but at last of the video can you do coding in pc.
Sir. While defining you don't mention data tyoe??.. it is not necessary sir ?
And function declaration is also not done there ... plz any one clarify my doubt
l like it..
amazing
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.
what type of return (with or without return values) value is used in these 3 categories of structures & functions?
Sir you have missed to give s2 and *p ...
Thanks for your program..
sir..make video about linked list
function declaration miss ayindhi sir, declaration comment lo pettandi sir
How to read student name.plz explain it sir
Arrow mark ?
sir where is the function declaration part
Why can't I compile it?
Visit Nepal 2020
ur missing the prototype how do we do that boss
function protypoe