loading
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h> 

int main(void) {
  int count_of_ages = 4;
  int* ages = (int*) malloc(count_of_ages * sizeof(int));
  ages[0] = 33;
  ages[1] = 65;
  ages[2] = 2;
  ages[4] = 36;
  for (int i = 0; i < count_of_ages; i++){
    printf("Age is %d, stored at %p\n", ages[i], &ages[i]);
  }
  free(ages);
  return 0;
}
Fetching token