Advertisement
obernardovieira

one #define two changes

Mar 25th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2. int numero = 5;
  3.  
  4. void retnumero() {
  5.     std::cout << numero << std::endl;
  6. }
  7.  
  8. #define retnumero numero=6;retnumero
  9.  
  10. int main() {
  11.     retnumero();
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement