Hi Viewers small mistake in program plz correct it. In the add function I have written res =a+b and it was wrong as we are passing x , y as arguments we have to write as res=x+y.
hi yes we have to declare those x and y as parameters in the function because in the function declaration we have mentioned 2 arguments for the function call so the no. of parameters and function name in function declaration,function call and function definition should be same. Hope your doubt has been clarified.
ur explanation of every topic in c language is really fantastic. I am B.E in E&C. But i dint studied c language. so i search many video in internet by many people. but i cant understand . but when i go through ur 72 video I understood perfectly. so i again see ur all video so that i will be get more knowledge. thank u very much.
Sir ,you are very good ,in fact you are an angel sent by God himself . I have been studying this topic for two weeks now and I could not understand it, but now after watching this video , I understand it very well and It starts to look so easy..You have made it really easy Sir and thank you for helping us ..I salute you
hi Edwin thanks for watching my sessions and supporting our channel.do subscribe to our channel and share with your friends and keep following our channel.
BEST TEACHER FOUND OVER WHOLE UA-cam FOR C LANGUAGE it was my luck that i found your amazing videos... and ur concepts are really awesome n i am sure it will help me in future... worthy videos n i can say that there is really good materials and teachers who are posting free lectures for the help and support of learners BIG THANKS TO U
Sir, I can say that your teaching is marvelous and I request one thing keep posting about concepts of c- programming.I cleared my doubts though this video,thank you sir.
Wowwwwww...u cleared my 1 month class confusions in just 40 min ..I regret why did not I see your video earlier..just pray for me guys..my exams are coming up
Thank u very much sir, U r explanation is very good . i was very confused with functions topic ,by watching this video now i m very in this functions topic.
Thank u sir...really I have surmounted my all prblm after watching ur video...and have clarified my doubt..i just indeed need practice to be familiarised with different prblm...thank u so much sir...take a bow
i think only you can clearly understand us that we can understand simply.so i only say you"thanks sir for these videos and i like your every videos which established my education.
Sir At timing 30:13 function parameters of function definition the variable will be a and b instead of X and y If I am wrong correct me Thanks a lot Sir
Sir, with all due respect, there's a mistake in the syntax of the function declaration. i.e. there should be a semi-colon after the function definition.
hi yogesh thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
at the end of 2nd row of code where function declaration ends semicolon(;) missed. placed the semicolon at the end of function declaration and execute the program . error will remove. regards #TARIQIQAL
@@chbhavani yes correct actually here were u are creating function the X and y are the variable where u can put any value.... So it is not that if I used variable in creating will not be same of the main function😍😍😍
I think we will write x+y also y because the values will change after the loop breaks when we enter into another loop so ur answer is correct and in my point of view it's correct I think
sir thank you very much i understood user defined function.and sir at 34:00 in the user defined function in the parameters the values of a and b are copied to x and y so in the user defined res=a+b; showed error,res=x+y; is the statement that is to be executed since x and y are the variables in the user defined( ) and not a and b.But you have corrected it when you did not return anything to main( ) in the next example.But i understood what you have explained.thanks a lot
When u r... writing any code...to make it short we use function...in main function we use... function call...just to call the function to be performed....whic is already defined...outside main function....that is what function defenetion is!!!
Hi Vishnu priya actually our c compiler only executes the main function. to simplify the code we are diving entire program into subprograms so we are writing sub programs outside the main function and we will write reference of the subprogram (function call) in main function. Hope your doubt has been clarified.
hi balu no need to use return 0 in every function. thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel. If you write void main() then we need not mention the return 0 if you write int main() the main function should return and integer value so we are writing return 0.( nothing will be returned ) Hope your doubt has been clarified.
hi akshay thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel. now i am going to start uploading the videos on python programming. and after that i will try to upload them.
hi dharani yes you can write same as they are all local variables. 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 , you told user-defined function should not be written in main function. So when we come across adding two numbers using functions concept , we use SUM or ADD as function name .as it is a user-defined function (SUM) ,how u can use it in main function in function call statement like for example, we write sum=num1+num2; Explain this sir.
hi keerthi yes we can declare it.but we have to use the same coordinates. if we declare with only data type then we can use any variables in function definition. thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
hi srikanth thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Sir can you help me with a program. Write a function in C to sort 10 numbers using array as an argument???.Can you tell me the steps to solve this.I am unable to understand where to sort the numbers,inside the main function or inside the function definition.Can you help??
Sir in the function definition part having return type as int ,can we write res=x+y instead of res=a+b because i suppose both are equivalent statement because the value of a and b are automatically copied to the the variable x and y.
hi ankur you are correct and in the function definition we are not supposed to use variables a & b as they are local variables declared in main function. i have written mistake there instead of writing res=x+y , i have written res=a=b. thanks for correction and observation thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Hi Yes we need not mention datatypes in function call which is written in main function. We have to mention datatypes in function declaration which is written at above the main function. Hope your doubt has been clarified.
Hi dramane plz make a selfie video with your feedback on my UA-cam channel and send to my WhatsApp number 9885466061 expecting feedback from you today and i will upload all the feedbacks in our channel. Thanks for watching my sessions.
Hi Viewers small mistake in program plz correct it.
In the add function I have written res =a+b and it was wrong as we are passing x , y as arguments
we have to write as res=x+y.
Thank u so much sir...I was struggling to understand basics but you explained it clearly :)
sir,should we declare x and y in function definition beside res?
hi yes we have to declare those x and y as parameters in the function because in the function declaration we have mentioned 2 arguments for the function call so the no. of parameters and function name in function declaration,function call and function definition should be same.
Hope your doubt has been clarified.
Actually sir when I am running this code in the main comes a error that is declaration syntax error
HI GARIMA
PLZ POST YOUR PROGRAM IN THIS COMMENT SECTION SO THAT I WILL TRY TO CLEAR IT.
I did not understand why some people dislike for this excellent teacher ~
thank you so much ,
love from MONGOLIA
Thank u Sir, I understood the Function Concepts in half an hour which I never understand whole semester.
A big thanks
hi praveen
Thanks for your support towards our channel.Share our channel with your friends and keep following our channel.
ur explanation of every topic in c language is really fantastic. I am B.E in E&C. But i dint studied c language. so i search many video in internet by many people. but i cant understand . but when i go through ur 72 video I understood perfectly. so i again see ur all video so that i will be get more knowledge. thank u very much.
Sir ,you are very good ,in fact you are an angel sent by God himself . I have been studying this topic for two weeks now and I could not understand it, but now after watching this video , I understand it very well and It starts to look so easy..You have made it really easy Sir and thank you for helping us ..I salute you
hi Edwin
thanks for watching my sessions and supporting our channel.do subscribe
to our channel and share with your friends and keep following our
channel.
Man kinds angel...
I do timepass in the class and learn stuff from your channel 😀 thanks for the videos
I am also bro
YOUR EXPLANATION IS AWESOME SIR AND YOUR ACTIONS AND APPEARANCE LOOK LIKE AMRUTHAM HARSHAVARDHAN SIR😀😀😀😀
Same feeling broh 😀😀😀
Why we initialize c=0
BEST TEACHER FOUND OVER WHOLE UA-cam FOR C LANGUAGE
it was my luck that i found your amazing videos... and ur concepts are really awesome n i am sure it will help me in future... worthy videos n i can say that there is really good materials and teachers who are posting free lectures for the help and support of learners
BIG THANKS TO U
Sir,
I can say that your teaching is marvelous and I request one thing keep posting about concepts of c- programming.I cleared my doubts though this video,thank you sir.
Wowwwwww...u cleared my 1 month class confusions in just 40 min ..I regret why did not I see your video earlier..just pray for me guys..my exams are coming up
I'm very sad for not having ur videos on my college days 😭
Tq sir . I absent for functions class in my college but I see your video I understand the functions topic
Thank u very much sir, U r explanation is very good . i was very confused with functions topic ,by watching this video now i m very in this
functions topic.
simply thanks is not enough for your service sir.. awesome work. heartful thanks to you..
I am preparing my own notes and didn’t understand in the first time but I watch again and got it clear . Superb!
Sir go esay on board. Look at his enthusiasm 😂 .
Thank you so much sir from Nepal🙂
It really works for me to understand 😃
i am more thankful for your channel.Helping me alot ,thank you very much sundeep garu
Thank u sir...really I have surmounted my all prblm after watching ur video...and have clarified my doubt..i just indeed need practice to be familiarised with different prblm...thank u so much sir...take a bow
Hi sankhadip
Thanks for watching my sessions and interest and support towards our channel.Keep following our channel.
i think only you can clearly understand us that we can understand simply.so i only say you"thanks sir for these videos and i like your every videos which established my education.
Greately explained sir. Thanks alot
God bless you
sir you explain very well thank you.
Thank u sir..dis video was very helpful for me.. Ur teaching is very clear.. Thanks
I couldn't understand with our lecture then watching your channel I improved my self in C
I like your way of teaching awesome 🙂
Very well teach sir👍
Sir u teaching skills is excellent sir ,now i understood clearly while watching ur video tq sir pls keep uploading c concepts
Sir At timing 30:13 function parameters of function definition the variable will be a and b instead of X and y
If I am wrong correct me
Thanks a lot Sir
Sir, with all due respect, there's a mistake in the syntax of the function declaration. i.e. there should be a semi-colon after the function definition.
No bro there is no semicolon in function.
yes syntax wrong, the program doesnot run
Awesome sir
U got a new subscriber
Sir,
Thank u soooooo very much for the video , it really helped me alot , now my concepts are clear , 😊
Sir thanks for help me clear my concept of function.🙏
Sir your teaching is awesome 👌 sir but giving examples also sir .giving values to a,b .we are understanding more sir
Thank you very much..I have learned a lot from your video sir..
Your class more useful sir.thanque very much.
thank you very much sir. this helped me very much to understand functions.
hi yogesh
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
sir i am getting a this error - [Error] expected unqualified-id before '{' token
pls help sir.
at the end of 2nd row of code where function declaration ends semicolon(;) missed. placed the semicolon at the end of function declaration and execute the program . error will remove. regards #TARIQIQAL
Super sir. You explained it very nicely. Too good. Keep uploading such videos. It's really helpful. 👍👍👍👍
It's excellent sir my total doubt s are cleared regarding this topic sir
Int add (intx,inty)
(
Int res;
res=x+y;
return res;
)
Sir I have the doubt here
Why we are not use x and y in the place of a and b ...like
res=a+b;
Do you know the reason..
I have the same doubt!!
Because we took here parameters (intx,inty)
@@chbhavani yes correct actually here were u are creating function the X and y are the variable where u can put any value.... So it is not that if I used variable in creating will not be same of the main function😍😍😍
Great video sir. Now I clearly understand udf
In the place of res=a+b it will be res=x+y
Yes
I think we will write x+y also y because the values will change after the loop breaks when we enter into another loop so ur answer is correct and in my point of view it's correct I think
At 25:30 should we need not to put semicolons after the declaration.
sir thank you very much i understood user defined function.and sir at 34:00 in the user defined function in the parameters the values of a and b are copied to x and y so in the user defined res=a+b; showed error,res=x+y; is the statement that is to be executed since x and y are the variables in the user defined( ) and not a and b.But you have corrected it when you did not return anything to main( ) in the next example.But i understood what you have explained.thanks a lot
sir in function declaration, is semi colon is not mandatory ?
wonderfully explained....🙂🙂
Sir why the functioncall is written inside the main and function definition is written outside the main
When u r... writing any code...to make it short we use function...in main function we use... function call...just to call the function to be performed....whic is already defined...outside main function....that is what function defenetion is!!!
Hi Vishnu priya
actually our c compiler only executes the main function.
to simplify the code we are diving entire program into subprograms so we are writing sub programs outside the main function and we will write reference of the subprogram (function call) in main function.
Hope your doubt has been clarified.
Tq sir
Thank you very much sir..!
You really made great help to understand this concept.
really appreciate for no ads!
Sir calling function and function call are same ?? Or not ,if not why??
Sir -should we write return 0 in calling function for every problem in functions
hi balu
no need to use return 0 in every function.
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
If you write void main() then we need not mention the return 0
if you write int main() the main function should return and integer value so we are writing return 0.( nothing will be returned )
Hope your doubt has been clarified.
Thankyou sir
You make very easy to understand this topic.
😊
U are awesome and ur videos are great makes learning c fun..great job sirji🎆🎆
How to multiply matrices of user defined m*n order by passing functions?? Could you help us,
hi FPS
thanks for your interest towards our channel and soon i will upload it.
Thank u sir 👍🏻😁😁😁...
Hello sir is it correct
int add(int x, int y)
int res;
res=x+y; // formal arguments
return res;
Yes correct.
Thanks for your support towards our channel and keep on following our channel
Yes it's right
very good teaching sir, can you please lecture on c++ concepts.
thank you priyanka
after completion of Security concepts i will upload..
Thanks sir,Chala baga chepparu na doubts anni clear iyyayi
si,r in function definition we have to add res=x+y;
Same doubt for me also
ur way of teaching is awesome and easily catchable can u pls explain the concept of encapsulation and abstraction in C++
hi akshay
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
now i am going to start uploading the videos on python programming. and after that i will try to upload them.
sir, can we write formal and actual arguements same in all functions?
hi dharani
yes you can write same as they are all local variables.
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 , you told user-defined function should not be written in main function.
So when we come across adding two numbers using functions concept , we use SUM or ADD as function name .as it is a user-defined function (SUM) ,how u can use it in main function in function call statement like for example, we write sum=num1+num2;
Explain this sir.
Inside the main function we have to write function call and outside the main function we hve to write function definition
Yes sir but sum is a user defined function and how can u write it in main function
Sir apke har video bhut ache hote h.
sir small doubt can actual parameters be called arguments???
Very good explaination .. thnk u
Tnq sir clearly explaining to everyone am from tamilnadu
Thanks sir
Thankyou sir for this video I can now solve all my doubts .
Awesome sir..thank you so much sir
Best online
Very nice teaching really good understanding sir
Thank you sir..I struggled a lot....Finally your video made me understand..
Hi sir, there's a one mistake that is you didn't put semicolon (;) at function declaration part in example program
Sir mast padate ho
Sir which book u r refereeing sir?
very nice teaching sir.....thank u
You clear each and every concept. Thank you soo muchh😊😊😊
Hi farahat
Thanks for your support and interest towards our channel and share our channel with your friends. Keep following our channel.
how does compiler know re and sum are the same?
Super sir...I understood the concept..
What is difference between predefine function and userdefine function
Sir i have one doubt !! Can we declare function declaration as int add(int x,int y) above the main function or we have to declare only with datatype
hi keerthi
yes we can declare it.but we have to use the same coordinates.
if we declare with only data type then we can use any variables in function definition.
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Sundeep Saradhi Kanthety sir please upload python programming !!
hi keerthi
i am going to start python programming soon. most probably with in 15 days.
keep following our channel
Great explanation sir....
Thank u
Sir, take a input in integer type and we declare a data in return type is float .it is possible or not
the video was very helpful for me 🙏
Hi
Thank you for your support towards our channel share our channel with your friends and keep following our channel.
hi sir,can functional call is used for logic statement and i need some more examples on function call
super sir now I understand clearly .
tq sir
Excellent teaching.
hi srikanth
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
Sir can you help me with a program.
Write a function in C to sort 10 numbers using array as an argument???.Can you tell me the steps to solve this.I am unable to understand where to sort the numbers,inside the main function or inside the function definition.Can you help??
U r great sir,i like in u that u give more examples 😇
its our privilege to have such a great teachers
thank u sir perfect explanation
What is complexity
Sir can't we take the same varaibles in calling and called function?
Super sir it was very nice 👌 👋 👌 👋 👌 👋 👌 👋 👌 👋 👌 👋
Sir in the function definition part having return type as int ,can we write res=x+y instead of res=a+b because i suppose both are equivalent statement because the value of a and b are automatically copied to the the variable x and y.
hi ankur
you are correct and in the function definition we are not supposed to use variables a & b as they are local variables declared in main function. i have written mistake there instead of writing res=x+y , i have written res=a=b.
thanks for correction and observation
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Sir which book should I refer to get a strong grip on c programming and where can I get question to practice it pls guide me
sir, in the function call, you have written only add(a, b); you didn't mention the datatype....is it correct sir? please clarify my doubt sir.
Hi
Yes we need not mention datatypes in function call which is written in main function.
We have to mention datatypes in function declaration which is written at above the main function.
Hope your doubt has been clarified.
Thank you sir😊
please add some more examples which makes us easy to understand
Sir a small.doubth...when the result is coping to sum at the end of execution then why to assign sum=0 on the above..
Why u used x and y variable in function defination
very good teaching ,sir can you please make the lecture on "FILE".am very confused about that lesson .thank you
hi darmane definitely i will upload the FILES concept either today or tomorrow.
thanks for watching my sessions.
Hi dramane plz make a selfie video with your feedback on my UA-cam channel and send to my WhatsApp number 9885466061 expecting feedback from you today and i will upload all the feedbacks in our channel. Thanks for watching my sessions.
thanks you sir i will do it no problem ,and thank you for uploding file
always welcome diarra..