Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * C++
- */
- #include <iostream>
- using namespace std;
- void foo(int i = 10)
- {
- cout << i << endl;
- }
- void main()
- {
- foo ();
- }
- /**
- * C
- */
- #include <stdio.h>
- void foo(int i)
- {
- printf("%d\n", i);
- }
- int main(void)
- {
- int i = 0;
- foo(i = (!i) ? 100 : i);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement