C get and put

Check screenshots at the bottom of the page

Order Description

int put(int,int);int get(int);

put(int index, int x) will save the value of x in a global variableat index "index." index is between 0 and 9 (incusive)

The return value of the put function should be 0.

get(int index) will return the value that was most-recently saved by putat index "index."

Again, this is not a stack:there is no memory of anything except the most recent put.

Write put and get in a single file named putget.c You should include yourglobal variable in this file as well.

Screenshots