Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Syntax for a recursive function in C++

AnkitTech
Beginner
1,044 Views

void recursion()
{

recursion(); //recursive call

}

int main()
{

recursion(); //function call

}

 

 

Thankyou

0 Kudos
0 Replies
Reply