Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. char nome[30] = "nadilson";
  3.  
  4. int recursivo(int i)
  5. {
  6. if (i == 0)
  7. {
  8. std::cout << "estou no return1";
  9. return 1;
  10. }
  11.  
  12. else
  13. {
  14. std::cout << nome;
  15. std::cout << i;
  16. return (recursivo(i-1));
  17. }
  18. }
  19. int main()
  20. {
  21. recursivo(sizeof(nome));
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement