c stack used for calculator