hi how would i resize an stack?

That depends what data structure you made the stack with.

For a linked list, you simply add the extra nodes you want, in a for loop, perhaps.

For an array being used as a stack, you would include <stdlib.h> and realloc() more space. Array resizing should be done rarely, and in larger blocks. Definitely not just a few elements or rows, at a time.

And Welcome to the forum, Yesamin! ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.