Node:Exercises,
Previous:Multi-function Calc,
Up:Examples
Exercises
- Add some new functions from
math.h
to the initialization list.
- Add another array that contains constants and their values. Then
modify
init_table
to add these constants to the symbol table.
It will be easiest to give the constants type VAR
.
- Make the program report an error if the user refers to an
uninitialized variable in any way except to store a value in it.