Lecture 14: Functions in C++ || Pass by Value || Pass by Reference

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 278

  • @CoderArmy9
    @CoderArmy9  Год назад +138

    Good Morning ji❣

  • @neerajchopra2758
    @neerajchopra2758 Год назад +56

    feedback
    1. love this lecture. ❤
    2. continue solving leetcode or gfg type of question in upcoming videos atleast 1.
    3. we need STL video so we also understand competitive programming syntax easily.
    (everyone like this msg so bhiya pad sake)

    • @satyamsinha6036
      @satyamsinha6036 Год назад

      Bhai it's a beginner friendly course

    • @shubhamkumarjha9192
      @shubhamkumarjha9192 Год назад +2

      Hnji Bro aapne bilkul sahi kaha..Bhale hee simple se simple question hee kyu na ho.. I am tottaly agree with your 2nd point..

    • @akashupadhyay8781
      @akashupadhyay8781 Год назад +1

      Bhai ruko jara sabar Karo....sab cover hoga

    • @shubhamkumarjha9192
      @shubhamkumarjha9192 Год назад

      @@akashupadhyay8781 bilkul bilkul..🫡💖

    • @GopalKumar-xu3iw
      @GopalKumar-xu3iw Год назад +1

      ​@@shubhamkumarjha9192 hmm jitna jyada question solve karenge usse concept clear hoga and concept yaad rahegi

  • @joydeep-halder
    @joydeep-halder Год назад +39

    Slept at 2, woke up at 5:45. consistency break nhi hona chahiye 🔥🔥

    • @CoderArmy9
      @CoderArmy9  Год назад +25

      You are doing great job, I see your solution in every video, keep it up..

    • @joydeep-halder
      @joydeep-halder Год назад +4

      @@CoderArmy9 Thank you so much bhaiya ❤❤

    • @subratahalder285
      @subratahalder285 Год назад +2

      Good Job

    • @joydeep-halder
      @joydeep-halder Год назад +1

      @@subratahalder285 Thanks bhai

    • @commander2805
      @commander2805 4 месяца назад

      Hey, are you consistent...?

  • @narutodihargo
    @narutodihargo Год назад +9

    00:00=Introduction to Function with Example, 05:20 = requirement of Function, 07:52= Syntax of Functions, 10:10= Ex) Sum of 'N' natural numbers, 12:30= Q1) check Prime Number , 17:58= Q2) find Factorial , 18:50= Function define, 21:20= Function call, 28:35= Function argument, 29:05= Ex- Sum of numbers, 32:50= Debug the function code, 35:20= Code part of Summation of two numbers,, 40:40= Exam- print Hello World by Function, 41:40 =Concept of Return Type , 46:22= Code- Prime Number, 53:30= Scope of Variable , 55:30= Default parameter, 01:02:07= Pass by Value, 01:05:21= Pass by Reference, 01:06:58= Q3) Swapping two numbers, 01:15:20= Code_ Swap two numbers, 01:17:50= Function Overloadding, 01:23:25= In build Swap function,

  • @joydeep-halder
    @joydeep-halder Год назад +18

    Swap two numbers without using extra variable:
    We can use a cool XOR properties that xor-ing of a number with itself cancels out each other and produces 0(because XOR means if both bits are same, then the output bit is 0).
    a = a^b; (a = 5^9)
    b = a^b (here basically it is b = 5^9^9, so b = 5 )
    a = a^b (here it is a = 5^9^5, so a = 9)

    • @SHIVSHANKAR-qv3bg
      @SHIVSHANKAR-qv3bg Год назад +1

      Subtract and addition ,xor and third variable ke alava koi aur trick h kya number swap ki bro

    • @joydeep-halder
      @joydeep-halder Год назад +1

      @@SHIVSHANKAR-qv3bg multiplication and division method hai just like addition and subtraction. But keep in mind that for both these methods, there could be overflow situation and for multiplication method division by zero case will be there. So XOR is better approach. But for other type of variable like string swapping, extra variable use kerna hi hai.

    • @SHIVSHANKAR-qv3bg
      @SHIVSHANKAR-qv3bg Год назад

      @@joydeep-halder ok bro thanks 👍

    • @Ankit-ge7yn
      @Ankit-ge7yn Год назад

      @@joydeep-halder in which class you are??

    • @infoaura5969
      @infoaura5969 Год назад

      Try this
      a=a+b-(b=a);

  • @rachitkatariya
    @rachitkatariya Год назад +7

    18:50 Hats for Rohit Bhaiyya's dedication...Shirt bhi bhi paseene se bheeg gayi hai.😩❤️🛐

  • @saurabhshukla7769
    @saurabhshukla7769 8 месяцев назад +2

    Bahut acche se chamak rha hai bhaiya ❤

  • @Ayushi.soni_31
    @Ayushi.soni_31 2 месяца назад +1

    Majestic sir!!!! function mujhe phle billkul smj nhi aa raha tha pr apki wajah se sab sort Ho gya thankyou so much 😍😍😍😍😍

  • @DevilJim-p1s
    @DevilJim-p1s 2 месяца назад +1

    Now I can see why India is far ahead of Pakistan every single influencer is helping others while in Pakistan everyone tries to put others down. Great work ❤ May Allah grant you with more success and provide you the fruit for the help you're doing ❤❤

  • @RahulSharma-un9kn
    @RahulSharma-un9kn Месяц назад +1

    Bhaiya your teaching techniques is next level than other. ❤❤

  • @KhushiKumari_4678
    @KhushiKumari_4678 5 месяцев назад +2

    Thanks bhaiya
    Ape 1 bahut ache teacher ho ❤😊

  • @shubhamlipane8634
    @shubhamlipane8634 4 месяца назад +4

    Lecture 14 Completed on 12-07-2024 ☑

  • @aayushrajpurohit321
    @aayushrajpurohit321 8 месяцев назад +1

    Bohot ache se #Chamka diya Functions Lots of Love for @CoderArmy9

  • @asmrhealthandbeauty8782
    @asmrhealthandbeauty8782 8 месяцев назад

    Amazing video bhaiya i am preparing for gate exam usma bhi itna clear nahi hoa tha pass by value and pass by reference ka concept jitna apna kardiya Thankyou for lovely video...

  • @kshitishnayak9944
    @kshitishnayak9944 8 месяцев назад

    best explanation ever gonna recommend all my friends

  • @simransahani9199
    @simransahani9199 7 месяцев назад +1

    best content and easy to understand ..bhaiya keep moving...💎

  • @Smile_please115
    @Smile_please115 8 месяцев назад

    Maja aagya sir function padhne me main dusre creater ka video dekh kr aaya but waha samaj nahi hai pr yaha pura clear hogaya thankyou bhaiya

  • @abhishekjaiswal9580
    @abhishekjaiswal9580 Год назад +1

    bhaiya aap bohot mast samjate ho

  • @ashhalumer
    @ashhalumer 2 месяца назад

    behtareen sir g...

  • @-BCS-VarshaVaishnav
    @-BCS-VarshaVaishnav Год назад +1

    18/180 done , thanku bhaiya

  • @PraptiPramanik-v6j
    @PraptiPramanik-v6j 4 месяца назад

    Day 18/180 completed.😊
    Sir you really are great. Never studied function in this way. 😮. I never understood how we can use different arguments instead of the parameter we mention in the function. Today i understood everything.

  • @sanskargawade7667
    @sanskargawade7667 8 месяцев назад

    Day 18 Completed ✅ : Thank You Bhaiya

  • @Funtube314
    @Funtube314 Год назад +3

    Bhaiya i am in iit guwahati fresher side. My friends starts lern coding that is provided by academics. But i choose you & belive in you bhaiya thoda dar lag raha hai lakin please pura cource karana. Love you

  • @akashkewat1219
    @akashkewat1219 Год назад

    Completed Day 18.Thanks Rohit bhaiya

  • @KunalDeshmukh-zj7eg
    @KunalDeshmukh-zj7eg 11 месяцев назад

    best video onfunctions i had ever seen

  • @rahulbhise2493
    @rahulbhise2493 8 месяцев назад

    please bhaiya make this series continue you are a real hero and motivator for young generation..!

  • @mayankpant9585
    @mayankpant9585 Год назад

    best video i have ever seen on functions

  • @payalthakur6065
    @payalthakur6065 Год назад +5

    Rohit bhaiya solve many and many different types of questions on leetcode for our practice 😊

  • @neverstoplearning9036
    @neverstoplearning9036 17 дней назад

    i am so confusing in funtion for a long time , i am also tring to understand this topic in our college teacher but at the end confused, but after this seeing i am very clear in this...😀😀

  • @12krishna_creator
    @12krishna_creator 9 месяцев назад

    bhaiya apka bahut bahut dhanyabaad❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤🙏🏻🙏🏻🙏🏻🙏🏻

  • @hashmmir2809
    @hashmmir2809 7 месяцев назад

    hats off for this teacher🎉
    i wasnt able to understand functions since last 2 years of my Engineering but now i clearly understood this concep, Thanks Sir🫡.Salute!

  • @rajnishjha190
    @rajnishjha190 4 месяца назад

    Best video on this topic .lov❤e from nepal 🇳🇵

  • @vijaybhadadebillionaire8944
    @vijaybhadadebillionaire8944 Год назад +5

    18 days completed

  • @jawadjamilmalik1146
    @jawadjamilmalik1146 Месяц назад

    i hardly drop a comment but having watched this video you really deserve it

  • @keshav_0__
    @keshav_0__ 2 месяца назад

    Chamak rha hai bahiya ✨️✨️

  • @hanzalamansuni9355
    @hanzalamansuni9355 Год назад +2

    Next level effort

  • @SauravDeopaVlogs
    @SauravDeopaVlogs Год назад +1

    Chamak gya sir day 18 done❤

  • @nitinthakur9141
    @nitinthakur9141 3 месяца назад

    Chapter 14 completed, Thank you so much sir. #DSA #180daysofcode

  • @freetime3944
    @freetime3944 Месяц назад +1

    I have a doubt bhaiya,
    C++ me swap function inbuilt hota hai toh phir same name function user defined bhi kaise ho rha hai?

  • @rahulsrivastava7765
    @rahulsrivastava7765 7 месяцев назад +1

    Lecture 14 Completed and the adventure continues.

  • @ShivamSingh-cd3iu
    @ShivamSingh-cd3iu Год назад +1

    #18 days complete ✅
    Vaiya maja agaya function hard lagta tha pahle but aj to bahut easy laga love you bro #coderarmy#18days challenge

  • @beastincarnet1106
    @beastincarnet1106 4 месяца назад

    aap best ho bhaiya..

  • @Prity_26
    @Prity_26 Месяц назад +1

    what a explanation🔥🔥🔥🔥

  • @muskn7239
    @muskn7239 2 месяца назад

    loved it bhaiyaa❤

  • @arvindrawat1101
    @arvindrawat1101 9 месяцев назад

    Thank you so much 🙏 bhaiya for amazing lectures.♥️

  • @satyam6943
    @satyam6943 Год назад +1

    Ye to pehli baar pata chala ki swap ek inbuilt function hai😮

  • @Ayush01010
    @Ayush01010 Год назад +3

    Sir how many questions you are targeting in this course?

  • @deepanshurathore8136
    @deepanshurathore8136 Год назад

    Wonderfull Explaination bhaiya

  • @shivanikumari6778
    @shivanikumari6778 4 месяца назад +1

    Thankyou so much sir✨

  • @silentghostgaming9950
    @silentghostgaming9950 9 месяцев назад +1

    Thank you sir!

  • @Dream.iit_2024_4feb
    @Dream.iit_2024_4feb 2 месяца назад

    maaza aa gya💖

  • @sejalshri
    @sejalshri Год назад

    Love this lecture❤ Aaj function samjh aaya aache se 😌.
    18 day complete
    #codingChallenge
    #CoderArmy

  • @simransahani9199
    @simransahani9199 7 месяцев назад +1

    i wish you to be a millionare subscribers soon😊

  • @khush2926
    @khush2926 3 месяца назад +1

    24 july 24, thank you sir, lecture 14 completed

  • @Sajal_Mallick_vlogs
    @Sajal_Mallick_vlogs 8 месяцев назад

    Day 18 done and Dusted. #consistency Thank you

  • @tanishqdixit6313
    @tanishqdixit6313 Год назад +1

    Day 18/180 completed

  • @_hulk748
    @_hulk748 Год назад

    ThankYou Sir great Video 🙏🙇‍♂✨

  • @sanchitsanyam7359
    @sanchitsanyam7359 Год назад

    14th Video Completed(with HW) #RohitNegiCodersArmy
    Thank you bhaiya .

  • @AlkeshDhaka
    @AlkeshDhaka Месяц назад

    Completed at day 5 thanks bhaiya
    Mujhe abhi yeh doubt hai ki pahle Wale que. Mai toh hamne & nahi lagaya toh voh sabhi pass by value hue toh voh change kyu hue koi bata doh please

  • @nikitasharma7209
    @nikitasharma7209 2 месяца назад

    Op lecture 🎉 20:47

  • @ankushladani496
    @ankushladani496 Год назад +1

    Done Bhaiya...18/180 ✅

  • @APstudent-y6s
    @APstudent-y6s Год назад

    1:26:06 thnx bhaiya ❤🙏

  • @Code..188
    @Code..188 26 дней назад

    Day 14 completed 😊

  • @Knox_47
    @Knox_47 Год назад +1

    Thanks Bhaiya,
    all doubts are clear now about function.❤❤♾♾

  • @kashmirichoudhary3908
    @kashmirichoudhary3908 Год назад

    Due to college exams I missed a lot of videos but here I'm back again ❤
    Day 18/180 ✅
    Day 17/180✅
    Day 16/180✅
    Day 15/180 ✅
    Week 2:- completed
    Due to my health issues I was unable to continue for few days but I'm back again ☁☁
    Bhaiya your teaching is really awesome
    Loving all the videos ❤
    Day 12/ 180 ✅
    Day 11/180 ✅
    Day 10/ 180 ✅
    Day 9/ 180 ✅
    Day 8/ 180 ✅
    Week 1 completed ✨✨☁
    Had a great experience learning from the basics ❤
    Day 5/ 180 ✅
    Day 4/ 180 ✅
    Day 3/ 180 ✅
    Day 2/ 180 ✅
    Day 1/ 180 ✅

  • @omkarkardel1711
    @omkarkardel1711 3 месяца назад +1

    Thanks sir❤

  • @DesiMrBean7
    @DesiMrBean7 Год назад +1

    Good morning bro..aaj ki video bhi done ❤

  • @sharifalam3195
    @sharifalam3195 Год назад

    badhiya tha bhaiya mja aaya🙃

  • @animeshkumarsingh4291
    @animeshkumarsingh4291 Год назад

    #180DaysofCode
    Day - 18 Lecture - 14
    Successfully Completed ✅✅✅

  • @SurajKumar-vc4du
    @SurajKumar-vc4du Год назад

    radhe radhe

  • @divyanshsharma720
    @divyanshsharma720 Год назад +1

    Bhaiya classes , acess specifier or inheritance bato plz

  • @a71patiladitya45
    @a71patiladitya45 Год назад +2

    #180DaysofCode
    Day - 18 Lecture - 14 ❣❣❣
    Successfully Completed ✅✅✅
    everything becomes easy and simple when bhaiya...teaches us it is not 180 hard days it is
    180 easy days....love you bhaiya....love from MAHARASHTRA.

  • @AdiSuyashGupta
    @AdiSuyashGupta Год назад

    Day 14 done bhaiya

  • @amannegi1817
    @amannegi1817 4 месяца назад

    Lecture 14 done❤

  • @kartik5134
    @kartik5134 Год назад

    Understood Rohit bhaiya ❤

  • @Sourav_Samanta.
    @Sourav_Samanta. 9 месяцев назад

    #Lecture 14: Functions in C++ | completed ;date 29-01-2024

  • @heetpatel3037
    @heetpatel3037 8 месяцев назад

    Chamka bhaiya 🫡

  • @martuzakhadri6500
    @martuzakhadri6500 Год назад

    today's concepts was so awesome...thank you bhai

  • @PranavKamathe
    @PranavKamathe 3 месяца назад

    Nice lecture...!!✨

  • @harshvardhanpatil5248
    @harshvardhanpatil5248 8 месяцев назад

    Bhaiya @1:21:30
    Kya reference variable implict typecasting nahi krr sakte?
    Jaise agar ham normal variables as a parameter allow krte function mei.
    Swap (int a, int b)
    Toh bhale hi arguments float values ki ho, wo apne aap typecast ho jaati hai.
    Waise reference variable k case mei nahi ho sakta kya? (Isiliye error aaya hai kya?)
    In other words. :
    Agar Swap (int & a, int & b) function mei float values as an argument pass krne pr error aati hai.
    Toh , Swap (int a, int b) function mei float values as an argument pass krne pr error kyu nahi aata?

  • @noorulabdeen5451
    @noorulabdeen5451 Год назад

    alhamdolilah

  • @sudip_2024_DIU
    @sudip_2024_DIU 8 месяцев назад

    Love from Bangladesh

  • @abhisheksingh3478
    @abhisheksingh3478 Год назад

    By using functions size of executable could be reduced significantly. So, less memory will be needed for the process. Hence, multiple process could be present on RAM.

    • @monty6393
      @monty6393 Год назад

      How's that even relevant?. embedded software developers will find heaven then😂

  • @simantosimanto-to2bp
    @simantosimanto-to2bp 3 месяца назад

    thank you brother

  • @Mighty_magic
    @Mighty_magic Год назад

    chamak gya

  • @shubhamkumarjha9192
    @shubhamkumarjha9192 Год назад +1

    Day 18 Complete Bhaiya.

  • @PradeepKumar-bc1ez
    @PradeepKumar-bc1ez Год назад

    Thanks Bhaiya

  • @AkashKumarSingh-d9m
    @AkashKumarSingh-d9m Год назад +1

    Bhaiya plz solve more and more leetcode and gfg questions ❤❤❤

  • @NOTHING88857
    @NOTHING88857 Год назад +1

    Good video and content quality for free ❤️

  • @Haat02
    @Haat02 Год назад +1

    Maja Aa raha h bhaiya..padna ma ❤❤❤❤

  • @OmPrakashKewtiya
    @OmPrakashKewtiya 3 месяца назад

    Day 14✅ done

  • @startwithme123
    @startwithme123 Год назад

    bhaiya jo pehle video ki timeline me topic name show hota tha vo krege to better rahega like if we know something then we can directly skip that portion or we can directly proceed at some topic which we need to understand

  • @mehedihasannnnn
    @mehedihasannnnn Год назад

    Vaiya bohot kuch sikhne ko mila hei... bass apke waja se. App dheere dheere a dsa khatam karo.koi jaldwaji nhi chahiye.🎉🎉🎉❤❤❤

  • @Viivekray
    @Viivekray Год назад

    Day 14 Completed ✅

  • @anshikathakur3567
    @anshikathakur3567 8 месяцев назад

    lecture 14✅

  • @sanchitsanyam7359
    @sanchitsanyam7359 Год назад +1

    I think pass by refrence shoulld be taught afterr
    pointer

  • @pinkyponky_
    @pinkyponky_ Год назад +1

    awesome

  • @SunnyKadian1
    @SunnyKadian1 Год назад

    Mission complete ❤❤ ho gya aaj ka 😌

  • @TusharMan-hb6rh
    @TusharMan-hb6rh 9 месяцев назад

    Day 14 complete ✅

  • @gkwithrk4940
    @gkwithrk4940 Год назад

    good explanation . I got clear every concept . Thanks Rohit bhaiya