About 3,600,000 results
Open links in new tab
  1. Design a dynamic stack using arrays that supports getMin () in …

    Aug 27, 2021 · Design a special dynamic Stack using an array that supports all the stack operations such as push (), pop (), peek (), isEmpty (), and getMin () operations in constant …

  2. Implement Stack using Array - GeeksforGeeks

    Mar 21, 2025 · To implement a stack using an array, initialize an array and treat its end as the stack’s top. Implement push (add to end), pop (remove from end), and peek (check end) …

  3. c - Implementing Stack using Dynamic Array - Stack Overflow

    Dec 9, 2015 · I have implemented a Stack using dynamic array (implementing array doubling) but when the doubling happens for the second time, I am getting runtime error! What's going …

  4. c99 - Dynamic array allocation on stack in C - Stack Overflow

    Oct 18, 2014 · There is no "dynamic array allocation on the stack". The array size has to be specified at the declaration. Some compilers, like GCC allow them as an extension in C90 (in …

  5. C Program to Implement Stack Operations using Dynamic ... - Sanfoundry

    Here is source code of the C Program to Implement Stack Operations using Dynamic Memory Allocation. The C program is successfully compiled and run on a Linux system. The program …

  6. c - implementing a dynamically sized stack using an array

    Sep 11, 2016 · The structure stack has a pointer 'a' to a dynamically allocated array (used to hold the contents of the stack), an integer 'maxSize' that holds the size of this array (i.e the …

  7. Dynamic Array Based Stack in C - Code Review Stack Exchange

    Sep 10, 2020 · I wrote a dynamic stack in C that uses an array as a structure. I tried to maintain O (1) for push and pop and believe I have done so. I want to know what can be written in a …

  8. Stack Implementation in C - Techie Delight

    Nov 19, 2023 · It is possible to implement a stack that can grow or shrink as much as needed using a dynamic array such as C++’s std::vector or ArrayList in Java.

  9. Implement a Stack in C Programming - GeeksforGeeks

    Nov 13, 2024 · In C, we can implement a stack using an array or a linked list. In this article, we will use the array data structure to store the stack elements and use a pointer to keep track of …

  10. Implementation of Stack Using Array in C - Programming9

    The C Program is written for implementation of STACK using Array, the basic operations of stack are PUSH () and POP (). STACK uses Last in First Out approach for its operations.

Refresh