#include int g = 10; //global variable: data section on memory void f(int x); int main(void){ int i = 10; // local variable stack char v[] = "Hello"; // v is a local variable on the stack of size 6 bytes char *s = "Hello"; // s is a local variable on the stack // that points to constant read only string in the data section int *n = malloc(10); // n is a locat variable on the stack // that points to a chunk of malloced memory on the heap return 0; }