I watch this channel only , whenever I have doubt in c programming because Sundeep sir explains very well
@starxeroxnehrunagar85514 жыл бұрын
super, i read most of the comments and full video thanks for your service to country
@insanedevelopment82705 жыл бұрын
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.
@kousikgadivemula31653 жыл бұрын
best for people who want learn in detail, sir is one of the best i have seen
@sivakamasundarig.74994 жыл бұрын
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
@cjoy20374 жыл бұрын
Now understanding functions very well. Value return topic explanation is really superb...thanks allot sir
@ShashikK-sr3hw4 жыл бұрын
But where is the function declaration in all programs sir...u have to mention
@rakeshnaidu71156 жыл бұрын
sir in the functions with arguments and without return type , in the function definition we should write void add(int x,int y) ..........
@suryapadala544 жыл бұрын
Yes we can bro
@aklakhahmad17253 жыл бұрын
Yes you are right
@kavyajayesh76652 жыл бұрын
Yes,I was also thinking that,
@maripijayanth17053 жыл бұрын
Tq sir for this video after 3years it is better than ppt presentation
@saikrishnatalla78483 жыл бұрын
You are unique sir .. explaining with an example 😃
@saidarshan49387 жыл бұрын
It was very nice and neat explanation sir... Thank you sir👌:-)
@sundeepsaradhi7 жыл бұрын
thanks for your interest towards our channel.
@satyasailokeshseela36403 жыл бұрын
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
@poojar77644 жыл бұрын
Clear and comprehensible, sir
@shreerambharadwaj26235 жыл бұрын
thank u sir..... This video was a great help for me....
@RAKESHKUMAR-fc5lx4 жыл бұрын
As like the cases in 2 and 4 should we write void in function declaration
@lekhanayaka18303 жыл бұрын
So well u have explained sir it's really easy to understand I learnt so much from this video sir superb👍👍
@singireddyrakesh48313 жыл бұрын
In function defination,In without return value case ,you wrote int add(),instead of void add()..A small mistake
@yuvarajveeramallu61245 жыл бұрын
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
@badruddindulvi48195 жыл бұрын
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.
@decibi26845 жыл бұрын
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
@suryapadala544 жыл бұрын
Yaaa without doubt we can use
@ashish-fi8by3 жыл бұрын
Nice explination sir... I have one doubt: What is the use of arguements again when we are declaring the variables in the function definition...
@JagadisM4 жыл бұрын
Thanks sir... what's the best practice of writing of all 4..and different uses
@lmt26124 жыл бұрын
love u sir,great job,keep it up....
@kavyajayesh76652 жыл бұрын
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?
@musriefsantosh18723 жыл бұрын
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...
@benjaminterrell22212 жыл бұрын
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?
@krishnareddykrishnareddy30766 жыл бұрын
Sir Please continue sir Your lessons are very useful to me and so many students like me sir Thank you sir
@iruthiksankar55374 жыл бұрын
excellent explanation sir.....
@whiteff5394 Жыл бұрын
Excellent teaching
@random-respectx6 жыл бұрын
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 ?}
@sundeepsaradhi6 жыл бұрын
hi yes we can use void if the main function doesn't return any value.
@random-respectx6 жыл бұрын
but, u have used int why is that ?
@sundeepsaradhi6 жыл бұрын
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.
@ssaridagli5 жыл бұрын
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-shor9303 жыл бұрын
If Called function is inside another function then what will be the sequence of execution?
@ashokarthanari1365 жыл бұрын
Hi Sir why we are assigning (sum=0) in the local declaration part and why not simply (sum). Please clarify this doubt sir
@harinidumpa45703 жыл бұрын
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?
@thurairajahsutharsan59352 жыл бұрын
is there any practical usage of these different finction definitions?
@madhulatha29893 жыл бұрын
U r really helpfull to lot of students sir🙏
@saisureshsanapala62926 жыл бұрын
Superb sir... Mind blowing we can easily able to understand.. Thank u
@ramyaj36374 жыл бұрын
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.
@sundeepsaradhi4 жыл бұрын
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 Жыл бұрын
Great explanation
@maheshpatil72363 жыл бұрын
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?
@ssaridagli5 жыл бұрын
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.
@saidivyag6536 жыл бұрын
sir u r explanation is very good
@dramanediarra45747 жыл бұрын
very intersting course .i owe u much
@sundeepsaradhi7 жыл бұрын
hi diarra thank you for your interest towards our channel and do subscribe to our channel for more videos.
@nithins41554 жыл бұрын
In this 4 types which type is generally used sir
@aklakhahmad17253 жыл бұрын
Sir in case of with arguments and without return type we should write void am I right?
@vallimanickam74393 жыл бұрын
Super sir I understand very much sir
@divyabs80226 жыл бұрын
Your explanation is really good . Thank you soo much
@sundeepsaradhi6 жыл бұрын
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.
@pranavsai86336 жыл бұрын
Which is better possibility of using either return or void
@sundeepsaradhi6 жыл бұрын
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.
@aravindhanraghuls2686 жыл бұрын
I am a beginner shall I watch this videos and become a coder sir
@growthinstinct31903 жыл бұрын
Fabulous explanation sir👌
@rittikbanerjee86655 жыл бұрын
In 2nd and 4th type why u have written int add(.....) even if they r not returning any value....? Plz reply
@pulivarthisairam64044 жыл бұрын
hii sir.. is it possible to change the values given to varibles in without arguments type function... or they are fixed values only??
@adapasowmya70236 жыл бұрын
Excellent teaching sir
@gourikumar45744 жыл бұрын
Sir if we are using void main is that necessary to put sum =0 because in some prgm we are not using it
@rubysayyedpanwaar18995 жыл бұрын
I got the concept but what is the difference among using these function when output is gonna be same?
@Reeves_775 жыл бұрын
sir why we need to declare a new varible=0 like res=0 or sum=0
@sundeepsaradhi5 жыл бұрын
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.
@rittikroy13425 жыл бұрын
Really awesome explanation sir..... you cleared my doubt
@anishali015 жыл бұрын
Thank you sir for this vedio
@lllllllll73256 жыл бұрын
Very clear explanation.Thankyou sir
@marripudianil91402 жыл бұрын
Sir can u explain the difference between int main and void main ??
@pandu72482 жыл бұрын
Best explanation but you are not mention prototype sir
@mahendrareddy17095 жыл бұрын
explained clearly.thank you sir.
@anilkumarvoonna49564 жыл бұрын
Sir, Please explain how to write programs by using functions and how can we write big programs by using functions
@priyadharsiniboopathi49864 жыл бұрын
Very wonderful sir ☺
@samueltamirat86966 жыл бұрын
sir i think we should use void instead of int for (without return value example)
@sundeepsaradhi6 жыл бұрын
thanks samuel nice observation.
@sankhadipsamanta77086 жыл бұрын
Here sir...i have a qstn sir... Should not we need to declare the function before the int main??
@sundeepsaradhi6 жыл бұрын
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.
@sankhadipsamanta77086 жыл бұрын
Sundeep Saradhi got it,sir.thank u
@manojkumar14396 жыл бұрын
Sundeep Saradhi Kanthety but sir u hv not declared the function before the main function in the video
@govindasindhu37285 жыл бұрын
Sir u give perfect explanation but can you also provide some notes so that we can easily learn and memorise for further time
@moropaneedwin49156 жыл бұрын
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 ?
@sundeepsaradhi6 жыл бұрын
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.
@moropaneedwin49156 жыл бұрын
Ok ..Thank you sir ,now I understand
@Endless4Entertainment7 жыл бұрын
very very thanks sir for clearing my concept
@sundeepsaradhi7 жыл бұрын
hi thanks for showing interest towards our channel and share my sessions with your friends
@adityabardhangupta98395 жыл бұрын
Sir when we use int data type And when to use void data type
@sundeepsaradhi5 жыл бұрын
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.
@TechProgrammingIdeas4 жыл бұрын
Good Thanks
@venuvinnu68075 жыл бұрын
Sir why didn't use void in no return function...
@varunmalali48803 жыл бұрын
Sir why you are using int sum=0
@chandrasekharreddy26986 жыл бұрын
hello sir... why you are assigning zero for sum , we can simply give sum ????? can you give explaination why we should give sum=0
@sundeepsaradhi6 жыл бұрын
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.
@munny52575 жыл бұрын
@@sundeepsaradhi tq sir
@bangaruvenkey29415 жыл бұрын
Superb explanation sir....thank u...
@PartheevVideoClub4 жыл бұрын
Hi sir...U r my favourite guru....may I know, where r u from?
@ramteja16576 жыл бұрын
Outstanding explanation sir
@karumurishiva20464 жыл бұрын
Sir why didn't u written int sum=0; Sum=add( ); In with out arguments,without return value s pleace explain sir
@satyaprakashmohanty10174 жыл бұрын
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.
@fredrickbandi77405 жыл бұрын
super perfect explanation.Fred ,Kenya
@poojashettyrs61325 жыл бұрын
Tq soo much all ur videos sr really helped a lot
@mrdcool4 жыл бұрын
Sir u dint write function declaration is that ok?
@khanimrankhan6 жыл бұрын
you are awesome... Sir...
@rhul00176 жыл бұрын
where is the function declaration during the metioning of examples of type of function??
@sundeepsaradhi6 жыл бұрын
hi rahul we have to declare the function but due to space problem i have ignored the function definition.
@rhul00176 жыл бұрын
Sir, can u tell, why we use different variable names for actual and formal parameters from function call to function definition?
@sundeepsaradhi6 жыл бұрын
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.mehedihasan38435 жыл бұрын
I am from Bangladesh,your teaching system very well.
@sridharb81346 жыл бұрын
Super explanation sir
@yanamalasugunakarreddy60526 жыл бұрын
Nice video sir
@PAVA1GKWORLD5 жыл бұрын
Perfect explanation sir
@darshanshetty-fs5to Жыл бұрын
❤️❤️❤️❤️
@Scientific_Lifestyle5 жыл бұрын
Fix your camera /video quality its quite blurry
@hashibarre10146 жыл бұрын
Sandeep thank you sir for your explanations about functions..you cleared my doubt about different types of functions
@sundeepsaradhi6 жыл бұрын
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.
@Fittodothings4 жыл бұрын
Nycc sir..
@keerthi69406 жыл бұрын
sir please explain c++ also !! thank you :) and sir can you please explain about scope and macros and recursion too
@sundeepsaradhi6 жыл бұрын
hi keerthi once the completion of information security i will upload the next subject.
@VBeniwal_IITKGP5 жыл бұрын
thank you so much Guruji😊😊
@anujithmd52846 жыл бұрын
sir i have dought, why function was not declared above the main( ) on these programs
@sundeepsaradhi6 жыл бұрын
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.
@rajesha49583 жыл бұрын
@@sundeepsaradhi but sir in these programs function definition is written after the main function so it needs to be declared before main()
@vishnuprakash4703 жыл бұрын
@@rajesha4958 yeah he wasn't declared due to space...but have to declared the function if function definition written after main function
@maheshbhatm99987 жыл бұрын
Thank sir , interesting
@sundeepsaradhi7 жыл бұрын
hi mahesh thanks for following my sessions.
@satishkumar-jy4bi6 жыл бұрын
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?
@sundeepsaradhi6 жыл бұрын
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.
@sirishasangu56267 жыл бұрын
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
@sundeepsaradhi7 жыл бұрын
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.
@preetinder29545 жыл бұрын
thanks ,
@tanishksahjra14985 жыл бұрын
sir in 2nd and 4th condition the function dec , return type should be void ri8?
@abinirshi86044 жыл бұрын
Ss
@solveunsolvable10246 жыл бұрын
sir,y should we write result=0,but not only result
@sundeepsaradhi6 жыл бұрын
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.
@sirishasangu56267 жыл бұрын
Super sir clear explanation
@sundeepsaradhi7 жыл бұрын
thank you for watching and supporting our channel.