How do i create a stack structure called memory which has block number, block size and stack attributes. Block number should be limited to 5 an the size should be 10. I have to create an allocate function in which it fills each block. For example, allocate(27) should print out 10 10 7 0 0. And another deallocate() and if it is run it should print 10 10 0 0 0. It is in C language.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here