answersLogoWhite

0

The major difference is that recursion requires more free memory whereas iteration is not so heavy on the system. A function is said to be recursive if it is called again within its own body. Example: void func (void) { // some condition func(); } The program will make a copy of all the variables used in func() (when it was called the first time) and refresh the working memory with the variables of func() (when its called the next time) and so on. if func() is called ten times before the termination condition is satisfied, there'll be ten copies of func() and its variables in the memory. Examples of iterative loops are simply FOR, WHILE and Do-WHILE.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What are the differences between iterations and loops in progamming?

A loop will loop for n iterations. Each times the program executes the code in the loop is an iteration.


What are the differences between urdu and English language?

wht is the basic difference between English language with urdu language


What are differences between karankawas and Comanches?

there language and what they live in (tipis)=)


What is the differences between Morse code and sign language?

Morse code are answered by short beeps and sign language are gestures.


What causes language barrier?

Language barriers can be caused by differences in language proficiency, cultural differences that affect communication norms, lack of common vocabulary, or differences in non-verbal communication cues. These barriers can hinder effective communication between individuals who speak different languages.


What are the major differences between the USA and Germany?

The two primary differences would be geography and language. There are a number of other ones, of course.


What are the differences between PHP and .NET?

.NET is a framework, PHP is a scripting (programming) language.


How Briefly explain differences between assembly machine languages?

difine essembly language


What are the key differences between a fork language and its original language?

A fork language is a modified version of the original language that has been developed independently by a different group of people. The key differences between a fork language and its original language typically include changes in syntax, grammar, vocabulary, and sometimes even pronunciation. These modifications are often made to suit the specific needs or preferences of the new language community.


What are the differences between Modern New Zealand English and Ancient Egyptian language?

its different lol ?


What are some differences of HTML between operating systems?

HTML is an operating system-independent language.


What are the communication differences between US and Vietnam?

Language barrier; the Vietnamese language, for most English speaking people is pretty tough to understand.