Hello again. Can someone help me i cant solve this problem: Write a C program to develop recursive functions to read the number of items from a string and to sum the result. sorry for my english.
A simple example of recursion would be: Code: void recurse() { recurse(); //Function calls itself } int main() { recurse(); //Sets off the recursion } for a better thing, u can use Code: #include <iostream> using namespace std; void recurse ( int count ) // Each call gets its own count { cout<< count <<"\n"; // It is not necessary to increment count sinceeach function's // variables are separate (so each count will be initialized one greater) recurse ( count + 1 ); } int main() { recurse ( 1 ); //First function call, so it starts at one }