C Programming - 35 - Factorial of a number using recursive function

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

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

  • @samiulislamshibly6520
    @samiulislamshibly6520 5 ปีที่แล้ว +12

    Before teaching another, you learn first. What a bad tutorial I have found so far!

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

    but in this case the factorial of zero won't give 1

  • @AnkitSingh-sv6ym
    @AnkitSingh-sv6ym 8 ปีที่แล้ว +1

    num of factorial argument n num which is declared in main function can't be same Na?

  • @ripeind4185
    @ripeind4185 8 ปีที่แล้ว +4

    there is a fault in this program you must add add
    int factorial (int num);
    before main( )

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

    What about zero in if condition what Id n=0?

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

    he is confused about his code and also this code dont give 1 of factorial of 0
    don't recommend this video.............................

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

    thanks for program

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

    Thank u sir!

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

    it helped thank u

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

    super

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

    nice

  • @abdulhameed8800
    @abdulhameed8800 6 ปีที่แล้ว +5

    very bad explanation

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

    best

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

    it's really complex . u could do it in an easy way also which is looping using( for loop) ...

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

      whats the point of using recursion then

    • @TheGamerGuy201
      @TheGamerGuy201 7 ปีที่แล้ว +4

      well obviously you can and actually its even better than recursion in this case unless you use hashing.But,factorial using recursion is one of the best ways to understand how recursion works so that you can understand when to use recursion to solve problems faster or in a simpler/shorter way than iterating.Infact,pretty much every problem that can be solved using recursion can also be solved using iteration but recursion can make your life much simpler if you understand it.

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

      @@TheGamerGuy201 Thanks you for this wonderful explanation

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

    worst