56 - CALL BY VALUE & CALL BY REFERENCE (PARAMETER PASSING TECHNIQUES) - C PROGRAMMING

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • There are two methods to pass the parameters as arguments to functions
    1) Call by Value
    2) Call by Reference
    In Call by Value both actual and formal parameters will have different memory locations and In Call by Reference both actual and formal parameters will share common memory location.

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

  • @rihanshumahajan5868
    @rihanshumahajan5868 6 ปีที่แล้ว +46

    Sir you are great.....before watching your videos I was not knowing c programming and had no interest but now i feel interested in learning c language and I am very much familiar with it now ......sir you are really god to me.I respect you from the bottom of my heart.

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

      Hi rihanshu
      Thanks for your interest towards our channel and share my sessions with your friends and keep following our channel and don't forget to subscribe to our channel.

  • @DynamoDeniro
    @DynamoDeniro 6 ปีที่แล้ว +15

    This series of videos make these concepts so clear! You're a TREMENDOUS teacher!!

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

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

    • @devukrishnad.k8151
      @devukrishnad.k8151 2 ปีที่แล้ว

      🙌

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

    Sir, God bless u .I mean it from the deepest part of my heart...😭❤👌

  • @donkeshwarkavyasree8632
    @donkeshwarkavyasree8632 4 ปีที่แล้ว +9

    Thanks a million sir....ur videos are really helping me a lot to understand the exact basic

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

    Super teching than by other TH-camrs tanq so much to you for clarifying my doubts you are doing a great job 😀

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

    Sir I'm having mid and sem your videos are helping me a top keep going on sir all the best 😊

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

    Sir you are one of the Excellent and finest teachers of the world

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

    I can't thank you enough sir ❤, you are a savior.

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

    Sir why don't you start this channel before 2016.....I passed out in the year 2016 ...n it's 2019 ...I know nothing about programming :(....now for teaching my siz...I found this channel and sir honestly speaking you are doing a wonderful help for the students ....thanku sir

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

    Really great explanation. I got good picture of call by value and call by reference concept. Thank you very much for this video.

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

    Sir , what an amazing teaching by you!
    Ur explaining in such a way that it is easy to understand and we go to exam hall and directly write exam.... Tq soo much for vedios... I have already subscribed to ur channel..

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

    Sir thank you so much, due to your videos I was confident in my interview and I got selected ❤️

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

      Wow mahn

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

    this video is exactly similar to gate2018 question.. you have cleared so many minds by this video.. keep going sir

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

      hi prem
      thanks for your interest towards our channel and watching my sessions.

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

    Thank you very much sir ..
    Your teaching skills are just amazing.

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

    Well said sir superb . nice lecture able to understand .thank u so much sir . please give more videos sir like arrays strings pointers filehandling introduction to c operators all .ok sir thank u

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

    your explanation
    is so clear to us sir..

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

    Thank you sir! God bless you for sharing your knowledge.

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

    sir idont know call by reference and call by value after watching your video how to use this functions in c programing thank you sir . i like your videos thank you sir

  • @bharathevuri2079
    @bharathevuri2079 5 ปีที่แล้ว +7

    great sir...! ur xplaination is simply amazing.keep on sharing ur knowledge.

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

    Wonderful teaching sir... U explained as simple as possible thank you sir..

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

    Sir,your videos are very helpful and straight to the point...Keep up the goood work!!

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

      hi sai
      thanks for watching my sessions. Thanks for your interest and support towards our channel. Keep following our channel.

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

    awesome lecture sir... u done a very good job..i have some doubts before watching ur's lecture video... like what are formal parameters... and what are actual parameters.. and don't have a clear idea about callingfunction and called function.. but after watching your lecture .. i am free from my all doubts... thank you sir...

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

      hi srinivas
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

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

    I understood the entire concept sir..really I am happy

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

    Sir, your vedio was too too too helpful ..... thank u sir

  • @raghu-f6t
    @raghu-f6t 3 หลายเดือนก่อน

    Your'e the best Teacher ❤

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

    Best videos ever. Your videos help me alot, Great job.

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

    best video ever ...prepared me for my exam..subscribed already

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

      hi sheehama
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

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

    sir tq u helped me a lot u r lectures are very good easy to understand

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

    Best video on this topic ......

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

    Sir... Am very grateful to u.. Thank u sir... Keep upload videos like this🤗❤️

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

    3years after re--learning c programs with yours fine teaching

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

    amazing sir , feeling really happy with ur explanation ! thank you!

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

      hi naresh
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.

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

    Great job sir.. very nice explaination👍

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

    vary great teaching

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

    whenever i get confused, your videos helps me like a kid learning abcd... thank you soo much sir, for the effort you put for us to make us understand the every corner of the concept.
    i always love to help my juniors in their c and c++ problems, and whenever i stuck, your effort helps me alot to clear any doubts... i love to refer your tutorials to the needy people i know...
    god bless you sir.

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

    Thank you sir I understood the program. Your teaching superb sir👌👌👌👌🤘🤘🤘🤘👍👍

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

    Explanation is simply super sir!

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

    You are doing a great job sir....Thank you so much

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

      hi darkhasa
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

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

    Thanks a lot ... East or West U R the Best !!!

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

    Thank u so much for sharing ur knowledge. It's really helpful!

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

    You are amazing sir

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

    Thank you. Your explanation was very thorough and easy to understand. What if the actual parameters in the function call look like this: split(str_to_split, int index, left, right) and the definition of the function looks like this split(char*string, int index, char*left, char*right); left and right are not declared and initialized in main but, I want to return left and right to main to print them out after splitting them. Is this a combination of call by reference and call by value?

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

    Sir.Thank you so much...

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

    you are another level thankyou soo much sirrrrr........

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

    Sir u teaching is good sir please do more videos sir

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

    Wow you cleared all my doubts

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

    nice and clear explanation.

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

    Good explanation

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

    Excellent sirrr

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

    THANKS A LOT SIR !!!! :) finally function is understandable :')

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

    Thank you sir for clearing the dought of 2 yr

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

      hi deban
      thanks for watching my sessions and our channel.

  • @33krithika.r.m.68
    @33krithika.r.m.68 4 ปีที่แล้ว

    Clear explanation sir.. Thank you💯

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

    Sir kindly explain this. In the call by reference example why is it that in the function call we are swapping address of a and b that is &a and &b. Why aren't we swapping *a and *b that is value at address a and b in function call? Why aren't we doing that?

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

    Sir,
    Here you are not returning any value. So instead of printing the values in the main function you should have printed it in the user defined function or function definition I suppose.

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

      same doubt.

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

      There is no need to print a value in either main function or function definition because we are not returning and we know that the statements in function definition will not be executed.

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

    Admirable........sir, tnq

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

    call by ,call by refersnce is arg &without return sir

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

    Thanks for your clear explanation

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

    thank you sir.
    what is the use of call by value and reference in c prg

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

    Well it was a very good explanation

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

    Sir hi,
    I had a little doubt that in the call by reference that we're not printing the( *a,*b)values?... we're just printing the first (a,b)?...

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

    Sir,can you explain the concepts on dynamic memory allocation

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

    Sir, what are the uses of call by function and call by reference which one is more better and why? Please upload the ry fast

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

    thank you sir,spoon feeding is very small word

  • @ayushsharma-br3lc
    @ayushsharma-br3lc 6 ปีที่แล้ว

    Well did explain sir greate work.

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

    7:19 function declaration

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

    Tq sir nice explanation

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

    so if we use same variable name in the main and sub functions, the same variable will be stored 2 different memory locations??

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

    Great sir . Sir are u from tamil nadu?

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

    Difference between call by value and call by reference

  • @sanjayanandanand7340
    @sanjayanandanand7340 11 หลายเดือนก่อน

    Sir only in swapping or any other ....

  • @ManishKumar-jc2su
    @ManishKumar-jc2su 5 ปีที่แล้ว +1

    Sir whether the function call is fn or statement in itself

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

    A guy has conducted a lucky draw. In which he has given a 5 digit number. If the second number is even and 4 th number is odd and sum of even and odd number is less than 5 th number print you are the winner or print try again. Write the program using functions. Pls send me the program for this sir.

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

      Hi Prashanth send me your email so that I will send program to your mail

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

    Thanks sir ... Plz sir I want your tutorial for data structure using c

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

    Super sir!!

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

    Thanku so much sir👍

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

    Tq so much sir 🙏❤️

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

    Sir when we need to use temp while writing pogram

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

    Thank you sir. :))
    .
    ..
    ...

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

    Why actualparameters are not changed in call by value

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

    Thank u so much sir

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

    the called function should be int to return swapped values of a and b otherwise output is same as initialized value

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

    Sir doubt
    Sir y we did not declare function above the main function in call by value and y we declared in call by reference

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

    Sir which type of function we shold give an example for call by address sir...?
    With argument no return type ahh sir?

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

    Sir I have doubt that in call by swapping of two is not possible ?

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

    Sir, is call by reference & pointers to functions are same? Please clarify

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

    Sir what are the advantages of Call by value and call by reference why we are using these

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

    in both the programs main function did not return any value don't we get any error while compiling

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

    Thanku so much sir

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

    Sir please upload c language full course .

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

    Sir one doubt you write the program IAM guessed in call by value we declare int temp place in semi colon

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

    i tried to write these codes but it error .... refused to run !!

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

    Thank you sir

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

    Sir why we using & * in call by reference .why not using in call by value sir

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

    Thank you

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

    Thank you sir

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

    What if I want to swap the variables without using temp variable..how do I point the variables and perform the logic then?

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

    sir
    please explain the pointer of interfunction communication topic

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

    Superb explanation Sir

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

      hi mishra
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

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

    Sir in call by reference actual and formal can be of same variable or different?

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

    Sir program start chesetappudu headerfile section rayama.....