#include <stdio.h> int main(void) { // declare variables int a; float b; char c; printf("Address of a: %p\n", &a); printf("Address of b: %p\n", &b); printf("Address of c: %p\n", &c); return 0; }
Output:
Address of a: 0x7ffd3d518618 Address of b: 0x7ffd3d51861c Address of c: 0x7ffd3d518617