55 - CATEGORIES OF FUNCTION DEFINITIONS - C PROGRAMMING

  Рет қаралды 91,996

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

Пікірлер: 165
@TharunKumar-yx8cy
@TharunKumar-yx8cy 3 жыл бұрын
I watch this channel only , whenever I have doubt in c programming because Sundeep sir explains very well
@starxeroxnehrunagar8551
@starxeroxnehrunagar8551 4 жыл бұрын
super, i read most of the comments and full video thanks for your service to country
@insanedevelopment8270
@insanedevelopment8270 5 жыл бұрын
good and excellent explanation bro i have watched many videos in C functions but i didn't get clear in that In this video,I got some clear ideas in functions.Such a good explanation bro. keep it up.
@kousikgadivemula3165
@kousikgadivemula3165 3 жыл бұрын
best for people who want learn in detail, sir is one of the best i have seen
@sivakamasundarig.7499
@sivakamasundarig.7499 4 жыл бұрын
Sir your explanation is nice. In second and fourth example,in the function definition,the return type of add function should be void instead of int.Function prototype/declaration may be included
@cjoy2037
@cjoy2037 4 жыл бұрын
Now understanding functions very well. Value return topic explanation is really superb...thanks allot sir
@ShashikK-sr3hw
@ShashikK-sr3hw 4 жыл бұрын
But where is the function declaration in all programs sir...u have to mention
@rakeshnaidu7115
@rakeshnaidu7115 6 жыл бұрын
sir in the functions with arguments and without return type , in the function definition we should write void add(int x,int y) ..........
@suryapadala54
@suryapadala54 4 жыл бұрын
Yes we can bro
@aklakhahmad1725
@aklakhahmad1725 3 жыл бұрын
Yes you are right
@kavyajayesh7665
@kavyajayesh7665 2 жыл бұрын
Yes,I was also thinking that,
@maripijayanth1705
@maripijayanth1705 3 жыл бұрын
Tq sir for this video after 3years it is better than ppt presentation
@saikrishnatalla7848
@saikrishnatalla7848 3 жыл бұрын
You are unique sir .. explaining with an example 😃
@saidarshan4938
@saidarshan4938 7 жыл бұрын
It was very nice and neat explanation sir... Thank you sir👌:-)
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
thanks for your interest towards our channel.
@satyasailokeshseela3640
@satyasailokeshseela3640 3 жыл бұрын
Sir as in without argument and without return value example, you by mistakenly used int return type in function definition there must me void.(void add()), and even in with argument and without return type too you wrote int in return type in func def instead of void
@poojar7764
@poojar7764 4 жыл бұрын
Clear and comprehensible, sir
@shreerambharadwaj2623
@shreerambharadwaj2623 5 жыл бұрын
thank u sir..... This video was a great help for me....
@RAKESHKUMAR-fc5lx
@RAKESHKUMAR-fc5lx 4 жыл бұрын
As like the cases in 2 and 4 should we write void in function declaration
@lekhanayaka1830
@lekhanayaka1830 3 жыл бұрын
So well u have explained sir it's really easy to understand I learnt so much from this video sir superb👍👍
@singireddyrakesh4831
@singireddyrakesh4831 3 жыл бұрын
In function defination,In without return value case ,you wrote int add(),instead of void add()..A small mistake
@yuvarajveeramallu6124
@yuvarajveeramallu6124 5 жыл бұрын
Sir... compared with previous functions basic vedios we should use res=a+b in definition part But in this vedios in examples why we used that res=x+y instead a+b Is both are correct
@badruddindulvi4819
@badruddindulvi4819 5 жыл бұрын
In previous video he did wrong that he used res=a+b but the correct thing is res=x+y.Because we declare intX and int Y in the function definition.
@decibi2684
@decibi2684 5 жыл бұрын
Nailed it sir.. But I have a doubt If not returning any value Then why need to use int in the place can we use void Plz clarify
@suryapadala54
@suryapadala54 4 жыл бұрын
Yaaa without doubt we can use
@ashish-fi8by
@ashish-fi8by 3 жыл бұрын
Nice explination sir... I have one doubt: What is the use of arguements again when we are declaring the variables in the function definition...
@JagadisM
@JagadisM 4 жыл бұрын
Thanks sir... what's the best practice of writing of all 4..and different uses
@lmt2612
@lmt2612 4 жыл бұрын
love u sir,great job,keep it up....
@kavyajayesh7665
@kavyajayesh7665 2 жыл бұрын
Sir,,thanks a lot ,,I had a lot of doubts regrding functions,really appreciable and you are trying your best to understand concepts easier,thanks alot 🙏🏻🙏🏻,sir I have a doubt,when we return values to the main function we should assign that value to other variable right?suppose we are not assigning that value to another variable ,and just giving printf the value of ‘res’,then it will show error?
@musriefsantosh1872
@musriefsantosh1872 3 жыл бұрын
Sir , in 2 and 4 cases you written int add so can it be ok or should write void add instead of that sir. Your videoes are quite interesting and helped me very much in 1 sem at corana academic holidays .hope you will give the answer sir...
@benjaminterrell2221
@benjaminterrell2221 2 жыл бұрын
At 10:46 in the second column in the function definition you assign sum with the value 0. Why ? Can't you just create the variable sum without giving it a value?
@krishnareddykrishnareddy3076
@krishnareddykrishnareddy3076 6 жыл бұрын
Sir Please continue sir Your lessons are very useful to me and so many students like me sir Thank you sir
@iruthiksankar5537
@iruthiksankar5537 4 жыл бұрын
excellent explanation sir.....
@whiteff5394
@whiteff5394 Жыл бұрын
Excellent teaching
@random-respectx
@random-respectx 6 жыл бұрын
Sir, I too have a question.. Is that optional to use ' void ' as the return_type when the function does not return any value { sir, you have used ' int ' as the return_type in the above program ( in the 2nd and 4th type of function) is that too correct ?}
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi yes we can use void if the main function doesn't return any value.
@random-respectx
@random-respectx 6 жыл бұрын
but, u have used int why is that ?
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi i have used int there beacuse have to return the result to the main function. You can use void function rather than int if it doesnt return any value.
@ssaridagli
@ssaridagli 5 жыл бұрын
Thank you for your awesome videos. I have the same question here. If the 2nd and 4th type of function "does not return the result to the main function" , why don't we use "void add" rather than "int add" ?
@dialogue-scenes-songs-shor930
@dialogue-scenes-songs-shor930 3 жыл бұрын
If Called function is inside another function then what will be the sequence of execution?
@ashokarthanari136
@ashokarthanari136 5 жыл бұрын
Hi Sir why we are assigning (sum=0) in the local declaration part and why not simply (sum). Please clarify this doubt sir
@harinidumpa4570
@harinidumpa4570 3 жыл бұрын
Sir in the previous video .. There is function declaration .. The same program u write in this video in four types.. But u didn't write function declaration. Why?
@thurairajahsutharsan5935
@thurairajahsutharsan5935 2 жыл бұрын
is there any practical usage of these different finction definitions?
@madhulatha2989
@madhulatha2989 3 жыл бұрын
U r really helpfull to lot of students sir🙏
@saisureshsanapala6292
@saisureshsanapala6292 6 жыл бұрын
Superb sir... Mind blowing we can easily able to understand.. Thank u
@ramyaj3637
@ramyaj3637 4 жыл бұрын
hi sir. I'm having a doubt.....just function call and function definition is enough to run a program know.....what is the use of declaring a function? please clarify my doubt sir.
@sundeepsaradhi
@sundeepsaradhi 4 жыл бұрын
hi if you write function definition above the main function then we need not write the function declaration. if you write function definition below the main function then it is mandatory to declare a function. what ever the case function call should be written in main function. Hope your doubt has been clarified.
@mask_man8924
@mask_man8924 Жыл бұрын
Great explanation
@maheshpatil7236
@maheshpatil7236 3 жыл бұрын
Sirr we are not returning any value means then we should use data type void right ?in case of 2 and 4 you have written int data type why so ? what is the reason?
@ssaridagli
@ssaridagli 5 жыл бұрын
In the example of adding (a+ b) in this programming practice, which one would you suggest using? I know its based on the situation but if you pick the 4th option, would it run the programme quicker or easier for debugging? Thank you so much, I love your channel.
@saidivyag653
@saidivyag653 6 жыл бұрын
sir u r explanation is very good
@dramanediarra4574
@dramanediarra4574 7 жыл бұрын
very intersting course .i owe u much
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi diarra thank you for your interest towards our channel and do subscribe to our channel for more videos.
@nithins4155
@nithins4155 4 жыл бұрын
In this 4 types which type is generally used sir
@aklakhahmad1725
@aklakhahmad1725 3 жыл бұрын
Sir in case of with arguments and without return type we should write void am I right?
@vallimanickam7439
@vallimanickam7439 3 жыл бұрын
Super sir I understand very much sir
@divyabs8022
@divyabs8022 6 жыл бұрын
Your explanation is really good . Thank you soo much
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi divya thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@pranavsai8633
@pranavsai8633 6 жыл бұрын
Which is better possibility of using either return or void
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi pranav that should be used based on the requirement of the problem thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@aravindhanraghuls268
@aravindhanraghuls268 6 жыл бұрын
I am a beginner shall I watch this videos and become a coder sir
@growthinstinct3190
@growthinstinct3190 3 жыл бұрын
Fabulous explanation sir👌
@rittikbanerjee8665
@rittikbanerjee8665 5 жыл бұрын
In 2nd and 4th type why u have written int add(.....) even if they r not returning any value....? Plz reply
@pulivarthisairam6404
@pulivarthisairam6404 4 жыл бұрын
hii sir.. is it possible to change the values given to varibles in without arguments type function... or they are fixed values only??
@adapasowmya7023
@adapasowmya7023 6 жыл бұрын
Excellent teaching sir
@gourikumar4574
@gourikumar4574 4 жыл бұрын
Sir if we are using void main is that necessary to put sum =0 because in some prgm we are not using it
@rubysayyedpanwaar1899
@rubysayyedpanwaar1899 5 жыл бұрын
I got the concept but what is the difference among using these function when output is gonna be same?
@Reeves_77
@Reeves_77 5 жыл бұрын
sir why we need to declare a new varible=0 like res=0 or sum=0
@sundeepsaradhi
@sundeepsaradhi 5 жыл бұрын
Hi Variables declared but not initialized will be having garbage values so if you don't initialized the output variables to 0 then garbage values may affect the result.
@rittikroy1342
@rittikroy1342 5 жыл бұрын
Really awesome explanation sir..... you cleared my doubt
@anishali01
@anishali01 5 жыл бұрын
Thank you sir for this vedio
@lllllllll7325
@lllllllll7325 6 жыл бұрын
Very clear explanation.Thankyou sir
@marripudianil9140
@marripudianil9140 2 жыл бұрын
Sir can u explain the difference between int main and void main ??
@pandu7248
@pandu7248 2 жыл бұрын
Best explanation but you are not mention prototype sir
@mahendrareddy1709
@mahendrareddy1709 5 жыл бұрын
explained clearly.thank you sir.
@anilkumarvoonna4956
@anilkumarvoonna4956 4 жыл бұрын
Sir, Please explain how to write programs by using functions and how can we write big programs by using functions
@priyadharsiniboopathi4986
@priyadharsiniboopathi4986 4 жыл бұрын
Very wonderful sir ☺
@samueltamirat8696
@samueltamirat8696 6 жыл бұрын
sir i think we should use void instead of int for (without return value example)
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
thanks samuel nice observation.
@sankhadipsamanta7708
@sankhadipsamanta7708 6 жыл бұрын
Here sir...i have a qstn sir... Should not we need to declare the function before the int main??
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi sankhadip if the user defined function is written above main function then we need not declare the function and if the user defined function has been written after the main function then we have to declare the function at above the main function. Hope your doubt has been clarified.
@sankhadipsamanta7708
@sankhadipsamanta7708 6 жыл бұрын
Sundeep Saradhi got it,sir.thank u
@manojkumar1439
@manojkumar1439 6 жыл бұрын
Sundeep Saradhi Kanthety but sir u hv not declared the function before the main function in the video
@govindasindhu3728
@govindasindhu3728 5 жыл бұрын
Sir u give perfect explanation but can you also provide some notes so that we can easily learn and memorise for further time
@moropaneedwin4915
@moropaneedwin4915 6 жыл бұрын
You are very good sir..You know what you are doing..I really feel like I owe you millions of hand shakes . So when the function has no arguments and returns no value , so in the function declaration we do not write any parameters inside the paranthesis of the name of the function ?
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi Edwin Thanks for watching my sessions and your interest and support towards our channel. If Function is written with no arguments and no return values then should not write parameters in the function declaration.
@moropaneedwin4915
@moropaneedwin4915 6 жыл бұрын
Ok ..Thank you sir ,now I understand
@Endless4Entertainment
@Endless4Entertainment 7 жыл бұрын
very very thanks sir for clearing my concept
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi thanks for showing interest towards our channel and share my sessions with your friends
@adityabardhangupta9839
@adityabardhangupta9839 5 жыл бұрын
Sir when we use int data type And when to use void data type
@sundeepsaradhi
@sundeepsaradhi 5 жыл бұрын
Hi If the called function definition return any integer value to calling function then we have to write int. If the called function definition doesn't return any value to the calling function then we have to write void. Hope your doubt has been clarified.
@TechProgrammingIdeas
@TechProgrammingIdeas 4 жыл бұрын
Good Thanks
@venuvinnu6807
@venuvinnu6807 5 жыл бұрын
Sir why didn't use void in no return function...
@varunmalali4880
@varunmalali4880 3 жыл бұрын
Sir why you are using int sum=0
@chandrasekharreddy2698
@chandrasekharreddy2698 6 жыл бұрын
hello sir... why you are assigning zero for sum , we can simply give sum ????? can you give explaination why we should give sum=0
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi chandra shekar if we declare any variable and not initialized any value to it , by deefault that variable will be having some garbage value so if we try to use that variable in expression we may get result computed with garbage value. so we have initialized the variable sum with 0. it would be better to initialize the output variables with 0. Hope your doubt has been clarified.
@munny5257
@munny5257 5 жыл бұрын
@@sundeepsaradhi tq sir
@bangaruvenkey2941
@bangaruvenkey2941 5 жыл бұрын
Superb explanation sir....thank u...
@PartheevVideoClub
@PartheevVideoClub 4 жыл бұрын
Hi sir...U r my favourite guru....may I know, where r u from?
@ramteja1657
@ramteja1657 6 жыл бұрын
Outstanding explanation sir
@karumurishiva2046
@karumurishiva2046 4 жыл бұрын
Sir why didn't u written int sum=0; Sum=add( ); In with out arguments,without return value s pleace explain sir
@satyaprakashmohanty1017
@satyaprakashmohanty1017 4 жыл бұрын
Sum=add(); can only be written only when you return some value to the variable Sum but without arguments. And add() has not assigned any variable ( unlike Sum in above case ) so no need to return any values.
@fredrickbandi7740
@fredrickbandi7740 5 жыл бұрын
super perfect explanation.Fred ,Kenya
@poojashettyrs6132
@poojashettyrs6132 5 жыл бұрын
Tq soo much all ur videos sr really helped a lot
@mrdcool
@mrdcool 4 жыл бұрын
Sir u dint write function declaration is that ok?
@khanimrankhan
@khanimrankhan 6 жыл бұрын
you are awesome... Sir...
@rhul0017
@rhul0017 6 жыл бұрын
where is the function declaration during the metioning of examples of type of function??
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi rahul we have to declare the function but due to space problem i have ignored the function definition.
@rhul0017
@rhul0017 6 жыл бұрын
Sir, can u tell, why we use different variable names for actual and formal parameters from function call to function definition?
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi rahul that is not mandatory and you can use the same variable names for both actual and formal parameters that doesnt matters. As they are local variable both will have their on memory space.
@md.mehedihasan3843
@md.mehedihasan3843 5 жыл бұрын
I am from Bangladesh,your teaching system very well.
@sridharb8134
@sridharb8134 6 жыл бұрын
Super explanation sir
@yanamalasugunakarreddy6052
@yanamalasugunakarreddy6052 6 жыл бұрын
Nice video sir
@PAVA1GKWORLD
@PAVA1GKWORLD 5 жыл бұрын
Perfect explanation sir
@darshanshetty-fs5to
@darshanshetty-fs5to Жыл бұрын
❤️❤️❤️❤️
@Scientific_Lifestyle
@Scientific_Lifestyle 5 жыл бұрын
Fix your camera /video quality its quite blurry
@hashibarre1014
@hashibarre1014 6 жыл бұрын
Sandeep thank you sir for your explanations about functions..you cleared my doubt about different types of functions
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi hashi thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@Fittodothings
@Fittodothings 4 жыл бұрын
Nycc sir..
@keerthi6940
@keerthi6940 6 жыл бұрын
sir please explain c++ also !! thank you :) and sir can you please explain about scope and macros and recursion too
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi keerthi once the completion of information security i will upload the next subject.
@VBeniwal_IITKGP
@VBeniwal_IITKGP 5 жыл бұрын
thank you so much Guruji😊😊
@anujithmd5284
@anujithmd5284 6 жыл бұрын
sir i have dought, why function was not declared above the main( ) on these programs
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi anujith if the function definition was written above the main function then no need of declaring the function and if the function definition is written after the main function then we have to declare the functions.
@rajesha4958
@rajesha4958 3 жыл бұрын
@@sundeepsaradhi but sir in these programs function definition is written after the main function so it needs to be declared before main()
@vishnuprakash470
@vishnuprakash470 3 жыл бұрын
@@rajesha4958 yeah he wasn't declared due to space...but have to declared the function if function definition written after main function
@maheshbhatm9998
@maheshbhatm9998 7 жыл бұрын
Thank sir , interesting
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi mahesh thanks for following my sessions.
@satishkumar-jy4bi
@satishkumar-jy4bi 6 жыл бұрын
Sir, if we are using scanf function in function definition part of the function without return, how can it would be without arguement and without return function?
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
HI satish here arguments are the parameters passing to function and return is the value which is returned to main function. that doesn't depends on scanf function.
@sirishasangu5626
@sirishasangu5626 7 жыл бұрын
Sir I have doubt about main and void main difference.is it possible to write as void main as main and main as void main
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
actually void is a return type. here our main function doesnt return any value so we can use void before main. If main function returns an integer value then we need to write int main(). so you can write any of one either main or void main. Depends on the logic we need to select main or void main.
@preetinder2954
@preetinder2954 5 жыл бұрын
thanks ,
@tanishksahjra1498
@tanishksahjra1498 5 жыл бұрын
sir in 2nd and 4th condition the function dec , return type should be void ri8?
@abinirshi8604
@abinirshi8604 4 жыл бұрын
Ss
@solveunsolvable1024
@solveunsolvable1024 6 жыл бұрын
sir,y should we write result=0,but not only result
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi sathwik for the output variables we need to initialize with zero because we are not initializing the output variables and only the result will be assigned to output variables. By default output variables will have GARBAGE VALUES which may give incorrect results.
@sirishasangu5626
@sirishasangu5626 7 жыл бұрын
Super sir clear explanation
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
thank you for watching and supporting our channel.
@sandeepkumarmamidala3006
@sandeepkumarmamidala3006 5 жыл бұрын
Thank you sir.
@shivaprasadchary14
@shivaprasadchary14 3 жыл бұрын
super sir
56 - CALL BY VALUE & CALL BY REFERENCE (PARAMETER PASSING TECHNIQUES) - C PROGRAMMING
25:51
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 17 МЛН
functions in c programming | categories of function |
17:58
Education 4u
Рет қаралды 166 М.
54 - FUNCTIONS - C PROGRAMMING
37:03
Sundeep Saradhi Kanthety
Рет қаралды 362 М.
Functions in C | C Language Tutorials
16:09
Naresh i Technologies
Рет қаралды 1,7 МЛН
C Programming Tutorial 15 - Using Functions in C
7:49
Caleb Curry
Рет қаралды 168 М.
C_87 Functions in C- part 4 |Call by Value & Call by Reference in C
25:49
Jenny's Lectures CS IT
Рет қаралды 342 М.
47 - STRINGS or CHARACTER ARRAYS - C PROGRAMMING
39:22
Sundeep Saradhi Kanthety
Рет қаралды 156 М.
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,3 МЛН
C_91 Functions in C- part 8 | Function With Argument and Return Type
15:54
Jenny's Lectures CS IT
Рет қаралды 162 М.
17 - SWITCH CASE WITH EXAMPLE - C PROGRAMMING
21:58
Sundeep Saradhi Kanthety
Рет қаралды 194 М.