Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Peregruzka
#include <iostream> #include <time.h> using namespace std; int maximum(int a, int b=0) { if(a>b) { return a; } else { return b; } } int maximum(int a, int b, int c) { return maximum(maximum(a, b), c); } int maximum(int a, int b, int c, int d) { return maximum(maximum(a, b, c), d); } int main() { cout << maximum(-9) << endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
C++ Standard Template Library
Namespace scope qualifier
Maze problem solution
Union-Struct-uint32_t byte order
back_inserter example
Access to temporary object
function returning a function demo
Palindrome Recursive Function Example
Calculate H.C.F using recursion
Exploring stringstreams
Please log in to post a comment.