plz help me
what is recursive function and how to achive it
and differance b/w retrative and recursive function????????
plz help me
what is recursive function and how to achive it
and differance b/w retrative and recursive function????????
Jab aik function main rahtay hue usi function ko call kartay hain, wo RECURSION kehlaata hay for example:
2.Code:void main() { main(); // Function calls itself }
retrative ic ko aap doobara dekhain aor asal lafz bata'ain...
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..
C++ ki Statements ko bar bar chala'nay kay amal ko "Iterative" kaha jaata hay jesa ke:
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.Code:include<iostream.h> void main() { int a=0; int age[10]; While (a<=10) { cout << "Enter Age"; cin >> age[a]; a++; } }
Bookmarks