{"id":487,"date":"2021-07-13T15:04:54","date_gmt":"2021-07-13T15:04:54","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=487"},"modified":"2021-09-13T07:17:44","modified_gmt":"2021-09-13T07:17:44","slug":"what-is-stack-in-data-structure","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/","title":{"rendered":"What is Stack in Data Structure ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"what-is-stack-in-data-structure\" class=\"color-pink\" style=\"text-align: justify;\">What is Stack in Data Structure ?<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>A stack is a container of objects that are performed based on last-in first-out (LIFO) principle.<\/li>\n<li>A stack is a limited access data structure-elements can be added and removed from the stack only at the top. A stack is a recursive data structure.<\/li>\n<li>The structural definition of a Stack is either empty or it consists of a top and the rest.<\/li>\n<li>There are two basic operations performed in a Stack they are:<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Push()<\/li>\n<li>Pop()<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Push()-push function is used to add or insert new item into the stack.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/push-operation.gif\" alt=\"POP Operation\" \/><\/div>\n<\/div>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Pop()-pop function is used to delete or remove an item from the stack.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/pop-operation.gif\" alt=\" Push Operation\" \/><\/div>\n<\/div>\n<ul>\n<li>When a stack is completely full, it is said to be Overflow state and if stack is completely empty, it is said to be Underflow state.<\/li>\n<li>Stack allows operations at one end only.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"other-operations-used-in-stack\" class=\"color-blue\">Other operations used in Stack<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li>Peek()-The peek() function gets the top element of the stack, without deleting it.<\/li>\n<li>isEmpty() -The isEmpty() function checks whether the stack is empty or not.<\/li>\n<li>isFull()-The isFull() function is used to check whether the stack is full or not.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"features-of-stacks\" class=\"color-green\">Features of stacks<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li>Dynamic data structures<\/li>\n<li>Do not have a fixed size<\/li>\n<li>Do not consume a fixed amount of memory<\/li>\n<li>Size of stack changes with each push() and pop() operation. Each push() and pop() operation increases and decreases the size of the stack by 1, respectively.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"implementation-of-stack\" class=\"color-purple\">Implementation of Stack<\/h2>\n<\/div>\n<\/div>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/stack-in-data-structure.png\" alt=\" Stack in Data Structure\" \/><\/div>\n<div>\n<h2 id=\"sample-code\" class=\"color-blue\">Sample Code<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-javascript code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-javascript code-embed-code\">import java.io.*;<br\/><br\/><br\/>\/* Java program to implement basic stack <br\/>operations *\/<br\/>class Stack <br\/>{ <br\/>    static final int MAX = 1000; <br\/>    int top; <br\/>    int a[] = new int[MAX]; \/\/ Maximum size of Stack <br\/>  <br\/>    boolean isEmpty() <br\/>    { <br\/>        return (top < 0); <br\/>    } <br\/>    Stack() <br\/>    { <br\/>        top = -1; <br\/>    } <br\/>  <br\/>    boolean push(int b) <br\/>    { <br\/>        if (top >= (MAX-1)) <br\/>        { <br\/>            System.out.println(&quot;Stack Overflow&quot;); <br\/>            return false; <br\/>        } <br\/>        else<br\/>        { <br\/>            a[++top] = b; <br\/>            System.out.println(b + &quot; pushed into the stack&quot;); <br\/>            return true; <br\/>        } <br\/>    } <br\/>  <br\/>    int pop() <br\/>    { <br\/>        if (top < 0) <br\/>        { <br\/>            System.out.println(&quot;Stack Underflow&quot;); <br\/>            return 0; <br\/>        } <br\/>        else<br\/>        { <br\/>            int b = a[top--]; <br\/>            return b; <br\/>        } <br\/>    } <br\/>} <br\/>  <br\/>\/\/ Driver code <br\/>class Main <br\/>{ <br\/>    public static void main(String args[]) <br\/>    { <br\/>        Stack s1 = new Stack(); <br\/>        s1.push(80); <br\/>        s1.push(75); <br\/>        s1.push(90); <br\/>        System.out.println(s1.pop() + &quot; Popped from the stack&quot;); <br\/>    } <br\/>}<\/code><\/pre> <\/div>\n<h2 id=\"output\" class=\"color-blue\">Output<\/h2>\n<\/div>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-javascript code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-javascript code-embed-code\">80 pushed into the stack<br\/>75 pushed into the stack<br\/>90 pushed into the stack<br\/>80 Popped from the stack<\/code><\/pre> <\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : A stack is a container of objects that are performed&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3028],"tags":[195,3329,971,15897,3318,3325,491,3331,221,368,203,199,214,198,363,3057,3337,205,222,484,3054,196,212,207,366,204,15928,3342,3326,3319,3327,206,972,3332,3323,3324,3341,3340,3343,3322,3328,3320,3330,3336,3339,3344,3338,3345,200,3055,197,3346,3348,3321,3317,968,3056,285,969],"class_list":["post-487","post","type-post","status-publish","format-standard","hentry","category-data-structure","tag-accenture-interview-questions-and-answers","tag-algorithm-for-push-and-pop-operation-in-stack-in-c","tag-altimetrik-india-pvt-ltd-interview-questions-and-answers","tag-apostek-software-interview-questions-and-answers","tag-application-of-stack-in-data-structure","tag-applications-of-stack-in-real-life","tag-applied-materials-interview-questions-and-answers","tag-array-representation-of-stack","tag-bharti-airtel-interview-questions-and-answers","tag-bmc-software-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-collabera-te-interview-questions-and-answers","tag-data-stack","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-flipkart-interview-questions-and-answers","tag-genpact-interview-questions-and-answers","tag-globallogic-india-pvt-ltd-interview-questions-and-answers","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-oracle-corporation-interview-questions-and-answers","tag-paramatrix-interview-questions-and-answers","tag-push-and-pop","tag-push-and-pop-operation-in-stack-in-c-program","tag-push-and-pop-operation-in-stack-in-data-structure","tag-push-and-pop-operation-in-stack-in-data-structure-program","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-sapient-consulting-pvt-ltd-interview-questions-and-answers","tag-stack-applications-in-data-structure","tag-stack-data-structure-in-c","tag-stack-data-structure-java","tag-stack-definition","tag-stack-implementation-in-java","tag-stack-in-c","tag-stack-in-data-structure","tag-stack-in-data-structure-with-example","tag-stack-operations","tag-stack-operations-in-capplication-of-stack","tag-stack-pop","tag-stack-program","tag-stack-push","tag-stack-push-pop","tag-stacking-containers","tag-tech-mahindra-interview-questions-and-answers","tag-tracxn-technologies-pvt-ltd-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-what-is-meant-by-stack","tag-what-is-stack-data-structure","tag-what-is-stack-in-c","tag-what-is-stack-in-data-structure","tag-wipro-infotech-interview-questions-and-answers","tag-wm-global-technology-services-india-pvt-ltd-limited-wmgts-interview-questions-and-answers","tag-xoriant-solutions-pvt-ltd-interview-questions-and-answers","tag-yodlee-infotech-pvt-ltd-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is Stack in Data Structure ? - Data Structure - Wikitechy<\/title>\n<meta name=\"description\" content=\"What is Stack in Data Structure ? - A stack is a container of objects that are performed based on last-in first-out (LIFO) principle\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Stack in Data Structure ? - Data Structure - Wikitechy\" \/>\n<meta property=\"og:description\" content=\"What is Stack in Data Structure ? - A stack is a container of objects that are performed based on last-in first-out (LIFO) principle\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T15:04:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-13T07:17:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/push-operation.gif\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"What is Stack in Data Structure ?\",\"datePublished\":\"2021-07-13T15:04:54+00:00\",\"dateModified\":\"2021-09-13T07:17:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/\"},\"wordCount\":514,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/data-structure\\\/push-operation.gif\",\"keywords\":[\"Accenture interview questions and answers\",\"algorithm for push and pop operation in stack in c\",\"Altimetrik India Pvt Ltd interview questions and answers\",\"Apostek Software Interview Questions and Answers\",\"application of stack in data structure\",\"applications of stack in real life\",\"Applied Materials interview questions and answers\",\"array representation of stack\",\"Bharti Airtel interview questions and answers\",\"BMC Software interview questions and answers\",\"Capgemini interview questions and answers\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"CGI Group Inc interview questions and answers\",\"Chetu interview questions and answers\",\"Ciena Corporation interview questions and answers\",\"Collabera Te interview questions and answers\",\"data stack\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"Flipkart interview questions and answers\",\"Genpact interview questions and answers\",\"Globallogic India Pvt Ltd interview questions and answers\",\"IBM interview questions and answers\",\"Indecomm Global Services interview questions and answers\",\"Mphasis interview questions and answers\",\"NetApp interview questions and answers\",\"Oracle Corporation interview questions and answers\",\"paramatrix interview questions and answers\",\"push and pop\",\"push and pop operation in stack in c program\",\"push and pop operation in stack in data structure\",\"push and pop operation in stack in data structure program\",\"SAP Labs India Pvt Ltd interview questions and answers\",\"Sapient Consulting Pvt Ltd interview questions and answers\",\"stack applications in data structure\",\"stack data structure in c\",\"stack data structure java\",\"stack definition\",\"stack implementation in java\",\"stack in c\",\"stack in data structure\",\"stack in data structure with example\",\"stack operations\",\"stack operations in capplication of stack\",\"stack pop\",\"stack program\",\"stack push\",\"stack push pop\",\"stacking containers\",\"Tech Mahindra interview questions and answers\",\"Tracxn Technologies Pvt Ltd interview questions and answers\",\"UnitedHealth Group interview questions and answers\",\"what is meant by stack\",\"what is stack data structure\",\"what is stack in c\",\"what is stack in data structure\",\"Wipro Infotech interview questions and answers\",\"WM Global Technology Services India Pvt.Ltd Limited (WMGTS) interview questions and answers\",\"Xoriant Solutions Pvt Ltd interview questions and answers\",\"Yodlee Infotech Pvt Ltd interview questions and answers\"],\"articleSection\":[\"Data Structure\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/\",\"name\":\"What is Stack in Data Structure ? - Data Structure - Wikitechy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/data-structure\\\/push-operation.gif\",\"datePublished\":\"2021-07-13T15:04:54+00:00\",\"dateModified\":\"2021-09-13T07:17:44+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"What is Stack in Data Structure ? - A stack is a container of objects that are performed based on last-in first-out (LIFO) principle\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/data-structure\\\/what-is-stack-in-data-structure\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/data-structure\\\/push-operation.gif\",\"contentUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/data-structure\\\/push-operation.gif\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Stack in Data Structure ? - Data Structure - Wikitechy","description":"What is Stack in Data Structure ? - A stack is a container of objects that are performed based on last-in first-out (LIFO) principle","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/","og_locale":"en_US","og_type":"article","og_title":"What is Stack in Data Structure ? - Data Structure - Wikitechy","og_description":"What is Stack in Data Structure ? - A stack is a container of objects that are performed based on last-in first-out (LIFO) principle","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/","og_site_name":"Wikitechy","article_published_time":"2021-07-13T15:04:54+00:00","article_modified_time":"2021-09-13T07:17:44+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/push-operation.gif","type":"","width":"","height":""}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"What is Stack in Data Structure ?","datePublished":"2021-07-13T15:04:54+00:00","dateModified":"2021-09-13T07:17:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/"},"wordCount":514,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/push-operation.gif","keywords":["Accenture interview questions and answers","algorithm for push and pop operation in stack in c","Altimetrik India Pvt Ltd interview questions and answers","Apostek Software Interview Questions and Answers","application of stack in data structure","applications of stack in real life","Applied Materials interview questions and answers","array representation of stack","Bharti Airtel interview questions and answers","BMC Software interview questions and answers","Capgemini interview questions and answers","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","CGI Group Inc interview questions and answers","Chetu interview questions and answers","Ciena Corporation interview questions and answers","Collabera Te interview questions and answers","data stack","Dell International Services India Pvt Ltd interview questions and answers","Flipkart interview questions and answers","Genpact interview questions and answers","Globallogic India Pvt Ltd interview questions and answers","IBM interview questions and answers","Indecomm Global Services interview questions and answers","Mphasis interview questions and answers","NetApp interview questions and answers","Oracle Corporation interview questions and answers","paramatrix interview questions and answers","push and pop","push and pop operation in stack in c program","push and pop operation in stack in data structure","push and pop operation in stack in data structure program","SAP Labs India Pvt Ltd interview questions and answers","Sapient Consulting Pvt Ltd interview questions and answers","stack applications in data structure","stack data structure in c","stack data structure java","stack definition","stack implementation in java","stack in c","stack in data structure","stack in data structure with example","stack operations","stack operations in capplication of stack","stack pop","stack program","stack push","stack push pop","stacking containers","Tech Mahindra interview questions and answers","Tracxn Technologies Pvt Ltd interview questions and answers","UnitedHealth Group interview questions and answers","what is meant by stack","what is stack data structure","what is stack in c","what is stack in data structure","Wipro Infotech interview questions and answers","WM Global Technology Services India Pvt.Ltd Limited (WMGTS) interview questions and answers","Xoriant Solutions Pvt Ltd interview questions and answers","Yodlee Infotech Pvt Ltd interview questions and answers"],"articleSection":["Data Structure"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/","name":"What is Stack in Data Structure ? - Data Structure - Wikitechy","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/push-operation.gif","datePublished":"2021-07-13T15:04:54+00:00","dateModified":"2021-09-13T07:17:44+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"What is Stack in Data Structure ? - A stack is a container of objects that are performed based on last-in first-out (LIFO) principle","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/what-is-stack-in-data-structure\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/push-operation.gif","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/push-operation.gif"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=487"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/487\/revisions"}],"predecessor-version":[{"id":3520,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/487\/revisions\/3520"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}