Top "Stack" questions

A stack is a last in, first out (LIFO) abstract data type and data structure.

How to debug Android ANR?

My Android app gets a lot of ANR reports lately in the Google Play console. Since this started to happen …

android debugging google-analytics stack crash-reports
Set stack size with setrlimit() and provoke a stack overflow/segfault

In the given example below I try to set the stacksize to 1kb. Why is it now possible to allocate …

c linux stack segmentation-fault setrlimit
Infix to postfix conversion in Python

I have started solving Data Structure problems in Python. I am implementing infix to postfix but not able to debug …

python stack postfix-notation infix-notation
Why is memory allocation on heap MUCH slower than on stack?

I have been told this many times. But I don't know WHY...What extra cost is involved when allocating memory …

c memory-management stack
How do I allocate a std::string on the stack using glibc's string implementation?

int main(void) { std::string foo("foo"); } My understanding is that the above code uses the default allocator to call …

c++ memory stack heap stdstring
push_back operation in c# containers

I need container like c++ vector. Often it is adviced to use List, but it dosen't support push_back operation. …

c# c++ list stack push-back
how bad is it to use dynamic datastuctures on an embedded system?

So in an embedded systems unit, that i'm taking at uni next year, we will learn that dynamic data structures …

list stack queue avr
Understand the assembly code generated by a simple C program

I am trying to understand the assembly level code for a simple C program by inspecting it with gdb's disassembler. …

c linux assembly stack disassembly
How to code a peek method for Linked List

I am creating a linked list implementation for a stack. I've got the pop and push method done, but I …

java stack peek
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause''

<?php require 'database.php'; $id = 0; if ( !empty($_GET['user_id'])) { $id = $_REQUEST['user_id']; } if ( !empty($_POST)) { // keep track …

pdo stack pdostatement