Results 1 to 4 of 4

Thread: help me plz about c++

  1. #1
    Sajidm is offline Member
    Last Online
    10th August 2010 @ 08:53 AM
    Join Date
    16 Mar 2009
    Location
    lahore
    Age
    36
    Posts
    273
    Threads
    21
    Thanked
    5

    Smile help me plz about c++



    plz help me
    what is recursive function and how to achive it
    and differance b/w retrative and recursive function????????

  2. #2
    Zeeshanef's Avatar
    Zeeshanef is offline Advance Member
    Last Online
    28th December 2023 @ 02:18 PM
    Join Date
    30 Mar 2006
    Location
    Great Pakistan
    Gender
    Male
    Posts
    846
    Threads
    12
    Credits
    1,456
    Thanked
    46

    Default

    Jab aik function main rahtay hue usi function ko call kartay hain, wo RECURSION kehlaata hay for example:

    Code:
    void main()
     {
       main(); // Function calls itself 
     }
    2.
    retrative ic ko aap doobara dekhain aor asal lafz bata'ain...

  3. #3
    Sajidm is offline Member
    Last Online
    10th August 2010 @ 08:53 AM
    Join Date
    16 Mar 2009
    Location
    lahore
    Age
    36
    Posts
    273
    Threads
    21
    Credits
    0
    Thanked
    5

    Smile plz help....................

    salam zeeshan bhai aprecursive ki thori datail bata dain
    aur dosera lafz eltrative / iltrative hia is ki tow ya three example b send ker dain plz..............i shall b thank full to u..

  4. #4
    Zeeshanef's Avatar
    Zeeshanef is offline Advance Member
    Last Online
    28th December 2023 @ 02:18 PM
    Join Date
    30 Mar 2006
    Location
    Great Pakistan
    Gender
    Male
    Posts
    846
    Threads
    12
    Credits
    1,456
    Thanked
    46

    Default

    C++ ki Statements ko bar bar chala'nay kay amal ko "Iterative" kaha jaata hay jesa ke:
    Code:
    include<iostream.h>
    
    void main()
     {
      int a=0;
      int age[10];
      While (a<=10)
       {
        cout << "Enter Age";
        cin >> age[a];
        a++;
       }
     }
    uper dye gaye program main, aap nay dekha kay while loop main di gai statement bar bar chal rahi hain, yaani jab tak condition false nahi hoti. ic amal ko "Iterative" kaha jaata hay.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •