54 - FUNCTIONS - C PROGRAMMING

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ต.ค. 2017
  • Functions are the subprograms of any complex problem which are developed independently and finally the solutions of all the subprograms will be integrated for final solution for the given problem.
    Functions are of two types:
    1) Predefined Functions
    2) User Defined Functions
    Also known as Modular Programming
    Three points to be followed while implementing any userdefined functions
    1) Function Declaration.
    2) Function Call.
    3) Function Definition.

ความคิดเห็น • 442

  • @sundeepsaradhi
    @sundeepsaradhi  6 ปีที่แล้ว +180

    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.

    • @rakshithappu1050
      @rakshithappu1050 6 ปีที่แล้ว +9

      Thank u so much sir...I was struggling to understand basics but you explained it clearly :)

    • @shockwave3283
      @shockwave3283 6 ปีที่แล้ว +7

      sir,should we declare x and y in function definition beside res?

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +10

      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.

    • @garimasingh7469
      @garimasingh7469 6 ปีที่แล้ว +2

      Actually sir when I am running this code in the main comes a error that is declaration syntax error

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +2

      HI GARIMA
      PLZ POST YOUR PROGRAM IN THIS COMMENT SECTION SO THAT I WILL TRY TO CLEAR IT.

  • @jinavlog811
    @jinavlog811 3 ปีที่แล้ว +25

    I did not understand why some people dislike for this excellent teacher ~
    thank you so much ,
    love from MONGOLIA

  • @ipraveensemwal
    @ipraveensemwal 5 ปีที่แล้ว +36

    Thank u Sir, I understood the Function Concepts in half an hour which I never understand whole semester.
    A big thanks

    • @sundeepsaradhi
      @sundeepsaradhi  5 ปีที่แล้ว +9

      hi praveen
      Thanks for your support towards our channel.Share our channel with your friends and keep following our channel.

  • @chandantaneja6388
    @chandantaneja6388 4 ปีที่แล้ว +2

    BEST TEACHER FOUND OVER WHOLE TH-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

  • @MayurKamatDoesStuff
    @MayurKamatDoesStuff 5 ปีที่แล้ว +16

    I do timepass in the class and learn stuff from your channel 😀 thanks for the videos

  • @sarathas553
    @sarathas553 3 ปีที่แล้ว +18

    YOUR EXPLANATION IS AWESOME SIR AND YOUR ACTIONS AND APPEARANCE LOOK LIKE AMRUTHAM HARSHAVARDHAN SIR😀😀😀😀

  • @tendulkarb302
    @tendulkarb302 5 ปีที่แล้ว +22

    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.

  • @harshakumar6407
    @harshakumar6407 3 ปีที่แล้ว +2

    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.

  • @sravanmallepoola8873
    @sravanmallepoola8873 5 ปีที่แล้ว

    i am more thankful for your channel.Helping me alot ,thank you very much sundeep garu

  • @moropaneedwin4915
    @moropaneedwin4915 6 ปีที่แล้ว +26

    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

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      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.

    • @MrVarunparmar
      @MrVarunparmar 5 ปีที่แล้ว +1

      Man kinds angel...

  • @jak9148
    @jak9148 5 ปีที่แล้ว +4

    Greately explained sir. Thanks alot
    God bless you

  • @gopikrishnakatam4579
    @gopikrishnakatam4579 3 ปีที่แล้ว +1

    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.

  • @prakashpanda2369
    @prakashpanda2369 5 ปีที่แล้ว

    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.

  • @tamilalagan5833
    @tamilalagan5833 ปีที่แล้ว

    simply thanks is not enough for your service sir.. awesome work. heartful thanks to you..

  • @biswajitchanda9661
    @biswajitchanda9661 5 ปีที่แล้ว +2

    Sir thanks for help me clear my concept of function.🙏

  • @ayeshasheikh1937
    @ayeshasheikh1937 4 ปีที่แล้ว +1

    Sir,
    Thank u soooooo very much for the video , it really helped me alot , now my concepts are clear , 😊

  • @paulraj9729
    @paulraj9729 5 ปีที่แล้ว

    Great video sir. Now I clearly understand udf

  • @vinaykumarvadla9183
    @vinaykumarvadla9183 5 ปีที่แล้ว

    I couldn't understand with our lecture then watching your channel I improved my self in C

  • @beastboysagar8193
    @beastboysagar8193 5 ปีที่แล้ว

    Thanks sir,Chala baga chepparu na doubts anni clear iyyayi

  • @sankhadipsamanta7708
    @sankhadipsamanta7708 6 ปีที่แล้ว +2

    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

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      Hi sankhadip
      Thanks for watching my sessions and interest and support towards our channel.Keep following our channel.

  • @bobbybindela1959
    @bobbybindela1959 3 ปีที่แล้ว

    Thank you very much sir..!
    You really made great help to understand this concept.

  • @rittikroy1342
    @rittikroy1342 5 ปีที่แล้ว +1

    Great explanation sir....
    Thank u

  • @yogeshkanojia357
    @yogeshkanojia357 6 ปีที่แล้ว +4

    thank you very much sir. this helped me very much to understand functions.

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +3

      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.

  • @mohitrana7723
    @mohitrana7723 5 ปีที่แล้ว

    Super sir. You explained it very nicely. Too good. Keep uploading such videos. It's really helpful. 👍👍👍👍

  • @PAVA1GKWORLD
    @PAVA1GKWORLD 5 ปีที่แล้ว +3

    I am preparing my own notes and didn’t understand in the first time but I watch again and got it clear . Superb!

  • @nisthadave6308
    @nisthadave6308 4 ปีที่แล้ว

    Thankyou sir for this video I can now solve all my doubts .

  • @pushpaa9675
    @pushpaa9675 3 ปีที่แล้ว +1

    Thank you so much sir from Nepal🙂
    It really works for me to understand 😃

  • @martinchege4418
    @martinchege4418 2 ปีที่แล้ว +2

    sir you explain very well thank you.

  • @theskysthelimit.
    @theskysthelimit. 5 ปีที่แล้ว

    extraordinary teaching...

  • @priyankagoura8815
    @priyankagoura8815 4 ปีที่แล้ว

    Thank u sir..dis video was very helpful for me.. Ur teaching is very clear.. Thanks

  • @madhulatha2989
    @madhulatha2989 3 ปีที่แล้ว +6

    I'm very sad for not having ur videos on my college days 😭

  • @BoatBrothers22
    @BoatBrothers22 4 ปีที่แล้ว +1

    Tnq sir clearly explaining to everyone am from tamilnadu

  • @vigneshm9388
    @vigneshm9388 5 ปีที่แล้ว

    U r great sir,i like in u that u give more examples 😇

  • @surprise_madha2170
    @surprise_madha2170 5 ปีที่แล้ว +21

    Sir go esay on board. Look at his enthusiasm 😂 .

  • @nisthadave6308
    @nisthadave6308 4 ปีที่แล้ว

    Thankyou sir
    You make very easy to understand this topic.
    😊

  • @Uday-yf4ue
    @Uday-yf4ue 3 ปีที่แล้ว

    Tq sir . I absent for functions class in my college but I see your video I understand the functions topic

  • @jayrajnaidu4475
    @jayrajnaidu4475 5 ปีที่แล้ว

    U are awesome and ur videos are great makes learning c fun..great job sirji🎆🎆

  • @sureshyandrapu1292
    @sureshyandrapu1292 3 ปีที่แล้ว

    Thank you very much..I have learned a lot from your video sir..

  • @bujjimahesh6653
    @bujjimahesh6653 3 ปีที่แล้ว +1

    I like your way of teaching awesome 🙂

  • @srirambalaka2325
    @srirambalaka2325 3 ปีที่แล้ว +2

    Excellent explanation sir

  • @jessyjireh3486
    @jessyjireh3486 5 ปีที่แล้ว +1

    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

  • @JaikishanJaikumar
    @JaikishanJaikumar 4 ปีที่แล้ว +2

    Awesome sir
    U got a new subscriber

  • @067-radhikaaluvala6
    @067-radhikaaluvala6 3 ปีที่แล้ว

    It's excellent sir my total doubt s are cleared regarding this topic sir

  • @lamo440
    @lamo440 5 ปีที่แล้ว

    Can we declare function in side main.function.
    and in return type instead of int if we want to return float value can we declare
    float function name( float a, float b)

  • @arunadevi6665
    @arunadevi6665 4 ปีที่แล้ว

    Super sir...I understood the concept..

  • @Farahat1234
    @Farahat1234 6 ปีที่แล้ว +1

    Sir apke har video bhut ache hote h.

  • @nandhucharan5858
    @nandhucharan5858 4 ปีที่แล้ว +3

    Sir u teaching skills is excellent sir ,now i understood clearly while watching ur video tq sir pls keep uploading c concepts

  • @akkshaymusician5075
    @akkshaymusician5075 6 ปีที่แล้ว +2

    ur way of teaching is awesome and easily catchable can u pls explain the concept of encapsulation and abstraction in C++

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      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.

  • @Seerat.Bashir
    @Seerat.Bashir 5 ปีที่แล้ว +14

    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

  • @Rakesh-ed4nn
    @Rakesh-ed4nn 3 ปีที่แล้ว +1

    sir in function declaration, is semi colon is not mandatory ?

  • @soreteyacob1182
    @soreteyacob1182 5 ปีที่แล้ว

    thank you!

  • @Subzero_101
    @Subzero_101 5 ปีที่แล้ว

    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..

  • @ankurkumar7289
    @ankurkumar7289 6 ปีที่แล้ว +1

    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.

    • @sundeepsaradhi
      @sundeepsaradhi  5 ปีที่แล้ว +2

      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.

  • @ekambaresht9851
    @ekambaresht9851 5 ปีที่แล้ว

    Sir small doubt !! For predefined function like printf and scanf we have to use void main ,then why you use only main() sir !! Without void main () is it ok sir !!!

  • @ganeshchintapalli9127
    @ganeshchintapalli9127 2 ปีที่แล้ว

    Your class more useful sir.thanque very much.

  • @Farahat1234
    @Farahat1234 6 ปีที่แล้ว +1

    You are great sir

  • @gorantlarenuka5540
    @gorantlarenuka5540 3 ปีที่แล้ว

    Great explanation 👏

  • @sanskaragrawal9764
    @sanskaragrawal9764 3 ปีที่แล้ว

    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

  • @srikanth1947
    @srikanth1947 6 ปีที่แล้ว +3

    Excellent teaching.

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      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.

  • @TharunKumar-yx8cy
    @TharunKumar-yx8cy 3 ปีที่แล้ว

    Wonderful explanation sir.

  • @JustDoityaarr
    @JustDoityaarr 5 ปีที่แล้ว

    Nyc teaching sir g💯❤️

  • @NaveenReddy-is1cw
    @NaveenReddy-is1cw 4 ปีที่แล้ว

    super sir now I understand clearly .
    tq sir

  • @Syashbrl37
    @Syashbrl37 6 ปีที่แล้ว +3

    How to multiply matrices of user defined m*n order by passing functions?? Could you help us,

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi FPS
      thanks for your interest towards our channel and soon i will upload it.

  • @Goodvibes12347
    @Goodvibes12347 5 ปีที่แล้ว

    hi sir,can functional call is used for logic statement and i need some more examples on function call

  • @devendrasharma2327
    @devendrasharma2327 4 ปีที่แล้ว +1

    Well explained sir.

  • @swarnalathabudili6500
    @swarnalathabudili6500 5 ปีที่แล้ว

    Sir can we instialize variables in function declarations

  • @shashikumar-yo6nc
    @shashikumar-yo6nc 4 ปีที่แล้ว

    Very nice teaching really good understanding sir

  • @seenishivakarthik2755
    @seenishivakarthik2755 5 ปีที่แล้ว

    Super explanation sir.thank u sirr

  • @solveunsolvable1024
    @solveunsolvable1024 6 ปีที่แล้ว +1

    sir does the output of the programme changes if we dont return a value instead return empty type
    ]

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi sai
      if you write the output statement in the user-defined function itself, then return type is not required.
      hope your doubt has been clarified.

  • @arjuns1164
    @arjuns1164 2 ปีที่แล้ว

    wonderfully explained....🙂🙂

  • @3a_nurulasyiqin394
    @3a_nurulasyiqin394 5 ปีที่แล้ว

    Thank u 💛

  • @devipallantla6803
    @devipallantla6803 2 ปีที่แล้ว

    Sir, take a input in integer type and we declare a data in return type is float .it is possible or not

  • @sanviroy592
    @sanviroy592 5 ปีที่แล้ว

    Sir can we write the function declaration without mentioning the datatypes inside the parenthesis ......as you said variables are optional inside the parenthesis ..is datatypes also optional
    Void add(); - can we say this as function declaration

  • @saisriharshayellaboyina2434
    @saisriharshayellaboyina2434 3 ปีที่แล้ว +1

    Sir calling function and function call are same ?? Or not ,if not why??

  • @mhenzine
    @mhenzine 5 ปีที่แล้ว

    Sir can i put a+b insted of x+y in second program

  • @Shreya-jv4je
    @Shreya-jv4je 3 ปีที่แล้ว

    Very good explanation Tysm sir ❤

  • @MK-gr4ue
    @MK-gr4ue 6 ปีที่แล้ว +2

    Thank u sir... U teach well

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi M K
      thanks for your interest and support towards our channel.keep following our channel.

  • @aavalajyothipriya4824
    @aavalajyothipriya4824 3 ปีที่แล้ว +1

    Sir your teaching is awesome 👌 sir but giving examples also sir .giving values to a,b .we are understanding more sir

  • @melsaudio4527
    @melsaudio4527 4 ปีที่แล้ว +6

    sir i am getting a this error - [Error] expected unqualified-id before '{' token
    pls help sir.

    • @tariqiqbal3772
      @tariqiqbal3772 4 ปีที่แล้ว +3

      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

  • @gourishnaik1024
    @gourishnaik1024 4 ปีที่แล้ว

    very nice teaching sir.....thank u

  • @ishagupta3323
    @ishagupta3323 5 ปีที่แล้ว

    Too much Beneficial to me😊😊

  • @srujanatata5213
    @srujanatata5213 5 ปีที่แล้ว

    please add some more examples which makes us easy to understand

  • @samakshsharma2940
    @samakshsharma2940 4 ปีที่แล้ว

    Very good explaination .. thnk u

  • @rakeshhc5115
    @rakeshhc5115 4 ปีที่แล้ว +1

    Sir which book u r refereeing sir?

  • @user-tl5wt3vn8l
    @user-tl5wt3vn8l 5 ปีที่แล้ว +1

    Sir please upload a video on Implicit and explicit functions

  • @rushikeshanerao9511
    @rushikeshanerao9511 3 ปีที่แล้ว +1

    Very well teach sir👍

  • @sharathchandra6349
    @sharathchandra6349 5 ปีที่แล้ว

    U r just above average

  • @dheepshiva2424
    @dheepshiva2424 5 ปีที่แล้ว +1

    Thank you sir..I struggled a lot....Finally your video made me understand..

  • @saikrishnaathulb4885
    @saikrishnaathulb4885 3 ปีที่แล้ว +1

    sir small doubt can actual parameters be called arguments???

  • @SaranyaSaranya-cc4fs
    @SaranyaSaranya-cc4fs 3 ปีที่แล้ว

    Awesome sir..thank you so much sir

  • @kritikakp9211
    @kritikakp9211 5 ปีที่แล้ว

    Tq sir.. It was very useful

  • @bhavurudinesh3279
    @bhavurudinesh3279 4 ปีที่แล้ว

    Sir you are teaching excellent

  • @johngilbert8955
    @johngilbert8955 4 ปีที่แล้ว

    Sir I'm not getting the output. It's showing some error, is there any mistake.?

  • @loganayagis52
    @loganayagis52 4 ปีที่แล้ว

    Super sir ,thank you..

  • @alphamen7721
    @alphamen7721 3 ปีที่แล้ว

    Great explanation sir☺☺

  • @jhansinalla5561
    @jhansinalla5561 3 ปีที่แล้ว +1

    U cleared my doubt

  • @sanjanas9723
    @sanjanas9723 3 ปีที่แล้ว

    how does compiler know re and sum are the same?

  • @guttulanookaraju8958
    @guttulanookaraju8958 5 ปีที่แล้ว

    We need more advanced topics in this functions topics

  • @ishagupta3323
    @ishagupta3323 5 ปีที่แล้ว +8

    In the place of res=a+b it will be res=x+y

    • @vishalacharya5683
      @vishalacharya5683 3 ปีที่แล้ว

      Yes

    • @cheepatikarthikeyareddy8036
      @cheepatikarthikeyareddy8036 3 ปีที่แล้ว

      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

  • @johny6702
    @johny6702 5 ปีที่แล้ว

    Very good explanation