Created
April 19, 2018 02:51
-
-
Save arrbxr/9b3a34de06e654f54383a2f0eb71bd54 to your computer and use it in GitHub Desktop.
stack operation created by arrbxr - https://repl.it/@arrbxr/stack-operation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| void abc(); | |
| int main() { | |
| std::cout << "Hello World!\n"; | |
| abc(); | |
| return 0; | |
| } | |
| void abc(){ | |
| int a; | |
| static int s = 3; | |
| a = ++s; | |
| cout<<a<<" "<<s<<"\n"; | |
| if(a<=6) | |
| abc(); | |
| cout<<a<<" "<<s<<"\n"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment