54 - FUNCTIONS - C PROGRAMMING

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 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 роки тому +26

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

  • @ipraveensemwal
    @ipraveensemwal 5 років тому +37

    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.

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

  • @moropaneedwin4915
    @moropaneedwin4915 6 років тому +27

    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 6 років тому +1

      Man kinds angel...

  • @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😀😀😀😀

  • @chandantaneja6388
    @chandantaneja6388 5 років тому +2

    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

  • @tendulkarb302
    @tendulkarb302 6 років тому +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.

  • @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

  • @madhulatha2989
    @madhulatha2989 3 роки тому +7

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

  • @Uday-yf4ue
    @Uday-yf4ue 3 роки тому +1

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

  • @Hyderabad_cityviewer
    @Hyderabad_cityviewer 4 роки тому +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.

  • @tamilalagan5833
    @tamilalagan5833 Рік тому

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

  • @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!

  • @surprise_madha2170
    @surprise_madha2170 6 років тому +21

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

  • @pushpaa9675
    @pushpaa9675 4 роки тому +1

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

  • @sravanmallepoola8873
    @sravanmallepoola8873 6 років тому

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

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

  • @prakashpanda2369
    @prakashpanda2369 6 років тому

    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.

  • @jak9148
    @jak9148 5 років тому +4

    Greately explained sir. Thanks alot
    God bless you

  • @martinchege4418
    @martinchege4418 3 роки тому +2

    sir you explain very well thank you.

  • @priyankagoura8815
    @priyankagoura8815 5 років тому

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

  • @vinaykumarvadla9183
    @vinaykumarvadla9183 5 років тому

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

  • @bujjimahesh6653
    @bujjimahesh6653 3 роки тому +1

    I like your way of teaching awesome 🙂

  • @rushikeshanerao9511
    @rushikeshanerao9511 3 роки тому +1

    Very well teach sir👍

  • @nandhucharan5858
    @nandhucharan5858 5 років тому +3

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

  • @FitnessWellnessGuru
    @FitnessWellnessGuru 5 років тому +4

    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

  • @prashantpandya6992
    @prashantpandya6992 4 роки тому +10

    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.

  • @JaikishanJaikumar
    @JaikishanJaikumar 5 років тому +2

    Awesome sir
    U got a new subscriber

  • @ayeshasheikh1937
    @ayeshasheikh1937 5 років тому +1

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

  • @biswajitchanda9661
    @biswajitchanda9661 6 років тому +2

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

  • @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

  • @sureshyandrapu1292
    @sureshyandrapu1292 4 роки тому

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

  • @ganeshchintapalli9127
    @ganeshchintapalli9127 3 роки тому

    Your class more useful sir.thanque very much.

  • @yogeshkanojia357
    @yogeshkanojia357 6 років тому +5

    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.

  • @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

  • @mohitrana7723
    @mohitrana7723 6 років тому

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

  • @067-radhikaaluvala6
    @067-radhikaaluvala6 3 роки тому

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

  • @neeraneerababu389
    @neeraneerababu389 4 роки тому +5

    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;

    • @o_o4552
      @o_o4552 4 роки тому

      Do you know the reason..
      I have the same doubt!!

    • @chbhavani
      @chbhavani 4 роки тому

      Because we took here parameters (intx,inty)

    • @sudhansushekharpatra7168
      @sudhansushekharpatra7168 4 роки тому

      @@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😍😍😍

  • @paulraj9729
    @paulraj9729 6 років тому

    Great video sir. Now I clearly understand udf

  • @ishagupta3323
    @ishagupta3323 5 років тому +8

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

    • @vishalacharya5683
      @vishalacharya5683 4 роки тому

      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

  • @adityalokhande7465
    @adityalokhande7465 6 років тому

    At 25:30 should we need not to put semicolons after the declaration.

  • @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

  • @Rakesh-ed4nn
    @Rakesh-ed4nn 3 роки тому +1

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

  • @arjuns1164
    @arjuns1164 3 роки тому

    wonderfully explained....🙂🙂

  • @vishnupriyajorrigala4773
    @vishnupriyajorrigala4773 5 років тому +3

    Sir why the functioncall is written inside the main and function definition is written outside the main

    • @utsavpatra9471
      @utsavpatra9471 5 років тому +2

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

    • @sundeepsaradhi
      @sundeepsaradhi  5 років тому +1

      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.

    • @vishnupriyajorrigala4773
      @vishnupriyajorrigala4773 5 років тому

      Tq sir

  • @bobbybindela1959
    @bobbybindela1959 3 роки тому

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

  • @kingtekken1
    @kingtekken1 4 роки тому +1

    really appreciate for no ads!

  • @saisriharshayellaboyina2434
    @saisriharshayellaboyina2434 3 роки тому +1

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

  • @rockingbalu3652
    @rockingbalu3652 6 років тому +3

    Sir -should we write return 0 in calling function for every problem in functions

    • @sundeepsaradhi
      @sundeepsaradhi  6 років тому

      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.

  • @nisthadave6308
    @nisthadave6308 4 роки тому

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

  • @jayrajnaidu4475
    @jayrajnaidu4475 6 років тому

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

  • @WingSkull101
    @WingSkull101 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.

  • @akshayav9605
    @akshayav9605 3 роки тому +1

    Thank u sir 👍🏻😁😁😁...

  • @sanchitapahade4075
    @sanchitapahade4075 5 років тому +3

    Hello sir is it correct
    int add(int x, int y)
    int res;
    res=x+y; // formal arguments
    return res;

    • @sundeepsaradhi
      @sundeepsaradhi  5 років тому +1

      Yes correct.
      Thanks for your support towards our channel and keep on following our channel

    • @Sto.ckmaster
      @Sto.ckmaster 5 років тому

      Yes it's right

  • @priyankadasari8995
    @priyankadasari8995 7 років тому +4

    very good teaching sir, can you please lecture on c++ concepts.

    • @sundeepsaradhi
      @sundeepsaradhi  7 років тому +1

      thank you priyanka
      after completion of Security concepts i will upload..

  • @beastboysagar8193
    @beastboysagar8193 5 років тому

    Thanks sir,Chala baga chepparu na doubts anni clear iyyayi

  • @manjud844
    @manjud844 6 років тому +10

    si,r in function definition we have to add res=x+y;

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

  • @dharaniyadla5880
    @dharaniyadla5880 6 років тому +2

    sir, can we write formal and actual arguements same in all functions?

    • @sundeepsaradhi
      @sundeepsaradhi  6 років тому

      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.

  • @shanigarapuanvesh5135
    @shanigarapuanvesh5135 4 роки тому +1

    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.

    • @sundeepsaradhi
      @sundeepsaradhi  4 роки тому

      Inside the main function we have to write function call and outside the main function we hve to write function definition

    • @shanigarapuanvesh5135
      @shanigarapuanvesh5135 4 роки тому

      Yes sir but sum is a user defined function and how can u write it in main function

  • @Farahat1234
    @Farahat1234 6 років тому +1

    Sir apke har video bhut ache hote h.

  • @saikrishnaathulb4885
    @saikrishnaathulb4885 3 роки тому +1

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

  • @samakshsharma2940
    @samakshsharma2940 4 роки тому

    Very good explaination .. thnk u

  • @BoatBrothers22
    @BoatBrothers22 4 роки тому +1

    Tnq sir clearly explaining to everyone am from tamilnadu

  • @213donthalasreeja9
    @213donthalasreeja9 3 роки тому +1

    Thanks sir

  • @nisthadave6308
    @nisthadave6308 4 роки тому

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

  • @SaranyaSaranya-cc4fs
    @SaranyaSaranya-cc4fs 3 роки тому

    Awesome sir..thank you so much sir

  • @artistx2816
    @artistx2816 6 років тому +2

    Best online

  • @shashi_mind
    @shashi_mind 5 років тому

    Very nice teaching really good understanding sir

  • @dheepshiva2424
    @dheepshiva2424 6 років тому +1

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

  • @mathalapavankumar3736
    @mathalapavankumar3736 5 років тому +3

    Hi sir, there's a one mistake that is you didn't put semicolon (;) at function declaration part in example program

  • @brijwasideendayal6601
    @brijwasideendayal6601 4 роки тому +1

    Sir mast padate ho

  • @rakeshhc5115
    @rakeshhc5115 4 роки тому +1

    Sir which book u r refereeing sir?

  • @gourishnaik1024
    @gourishnaik1024 5 років тому

    very nice teaching sir.....thank u

  • @Farahat1234
    @Farahat1234 6 років тому +1

    You clear each and every concept. Thank you soo muchh😊😊😊

    • @sundeepsaradhi
      @sundeepsaradhi  6 років тому +1

      Hi farahat
      Thanks for your support and interest towards our channel and share our channel with your friends. Keep following our channel.

  • @sanjanas9723
    @sanjanas9723 4 роки тому

    how does compiler know re and sum are the same?

  • @arunadevi6665
    @arunadevi6665 4 роки тому

    Super sir...I understood the concept..

  • @aravindsinganaboina6742
    @aravindsinganaboina6742 2 роки тому

    What is difference between predefine function and userdefine function

  • @keerthi6940
    @keerthi6940 6 років тому +2

    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

    • @sundeepsaradhi
      @sundeepsaradhi  6 років тому

      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.

    • @keerthi6940
      @keerthi6940 6 років тому +1

      Sundeep Saradhi Kanthety sir please upload python programming !!

    • @sundeepsaradhi
      @sundeepsaradhi  6 років тому

      hi keerthi
      i am going to start python programming soon. most probably with in 15 days.
      keep following our channel

  • @rittikroy1342
    @rittikroy1342 5 років тому +1

    Great explanation sir....
    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

  • @lakhanparmar4348
    @lakhanparmar4348 5 років тому +1

    the video was very helpful for me 🙏

    • @sundeepsaradhi
      @sundeepsaradhi  5 років тому

      Hi
      Thank you for your support towards our channel share our channel with your friends and keep following our channel.

  • @Goodvibes12347
    @Goodvibes12347 6 років тому

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

  • @NaveenReddy-is1cw
    @NaveenReddy-is1cw 5 років тому

    super sir now I understand clearly .
    tq sir

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

  • @vishalacharya5683
    @vishalacharya5683 4 роки тому

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

  • @vigneshm9388
    @vigneshm9388 6 років тому

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

  • @rakeshnaidu7115
    @rakeshnaidu7115 6 років тому

    its our privilege to have such a great teachers
    thank u sir perfect explanation

  • @yousufshaik2569
    @yousufshaik2569 3 роки тому +1

    What is complexity

  • @mounika.p2991
    @mounika.p2991 3 роки тому

    Sir can't we take the same varaibles in calling and called function?

  • @brightmodesci360
    @brightmodesci360 3 роки тому

    Super sir it was very nice 👌 👋 👌 👋 👌 👋 👌 👋 👌 👋 👌 👋

  • @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  6 років тому +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.

  • @sanskaragrawal9764
    @sanskaragrawal9764 4 роки тому

    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

  • @sathyanarayanan4624
    @sathyanarayanan4624 5 років тому +1

    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.

    • @sundeepsaradhi
      @sundeepsaradhi  5 років тому

      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.

    • @sathyanarayanan4624
      @sathyanarayanan4624 5 років тому

      Thank you sir😊

  • @srujanatata5213
    @srujanatata5213 5 років тому

    please add some more examples which makes us easy to understand

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

  • @mohammadrafijonnavada7411
    @mohammadrafijonnavada7411 3 роки тому

    Why u used x and y variable in function defination

  • @dramanediarra4574
    @dramanediarra4574 7 років тому +6

    very good teaching ,sir can you please make the lecture on "FILE".am very confused about that lesson .thank you

    • @sundeepsaradhi
      @sundeepsaradhi  7 років тому +2

      hi darmane definitely i will upload the FILES concept either today or tomorrow.
      thanks for watching my sessions.

    • @sundeepsaradhi
      @sundeepsaradhi  7 років тому +3

      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.

    • @dramanediarra4574
      @dramanediarra4574 7 років тому

      thanks you sir i will do it no problem ,and thank you for uploding file

    • @sundeepsaradhi
      @sundeepsaradhi  7 років тому +1

      always welcome diarra..