2 C functions

profileTranger

 

The prototypes are:

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

put(int index, int x) will save the value of x in a global variable
at 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 put
at 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 your
global variable in this file as well.

    • 4 years ago
    • 10
    Answer(2)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      putget.c
    • attachment
      ReadMe.txt

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      putget.c