1. Assume the Lua stack is empty. What will be its contents after the following sequence of calls to the C API?
2. An application is using the Lua configuration file below. Assume it has already been loaded.
Write the C code to get the values out of this configuration file and copy them to the
window_title
, window_width
, and user
C variables. There is no need to do error checking:
3. What does the C function below do, when called from Lua?
4. Write a C function that takes receives an arbitrary number of numeric arguments, computes their sum, and returns it.
5. Write a clear
C function that clears the bit vectors of class 8. The function
should not return anything.