Guest User

Untitled

a guest
Jun 19th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. 2.4.3
  2. Order of parameters and arguments
  3. What output would you expect from this code snippet?
  4. def mixed_args(a,b,*c,d)
  5. puts "Arguments:"
  6. puts a,b,c,d
  7. end
  8. mixed_args(1,2,3,4,5)
  9.  
  10. hatası da bu
  11.  
  12. fatih@ubuntu:~$ ruby deneme1.rb
  13. deneme1.rb:3: syntax error, unexpected tIDENTIFIER, expecting tAMPER or '&'
  14. def obj.mixed_args(a,b,*c,d)
Add Comment
Please, Sign In to add comment