SCREENA WSTAWIĆ
Only Stack code without heap: -static memory allocation
#include <iostream> int sum(int a, int b) { return a+b; } int main() { int a = 10; int b = 20; std::cout<<sum(a,b); return 0; }
Heap - dynamic allocation memory (...)
int* p; p=new int; *p=100; //(operator wyłuskania) delete p;
There was an error while loading. Please reload this page.