Lua Trivia

lua-users home

Question A

a:b(c) causes a Lua function to be called. What arguments are passed to that function?

Question B

What does the following code print, and why?
a = 2
b = 3
c = a-- * b++
print(a, b, c)

RecentChanges · preferences
edit · history
Last edited October 25, 2008 8:17 pm GMT (diff)