brintos

brintos / llvm-project-archived public Read only

0
0
Text · 309 B · afc206b Raw
15 lines · c
1#include <stdio.h>2#include <stdlib.h>3#include <string.h>4int main() {5  int stack_int = 5;6  int *heap_int = (int*) malloc(sizeof (int));7  *heap_int = 10;8 9  char stack_str[] = "stack string";10  char *heap_str = (char*) malloc(80);11  strcpy (heap_str, "heap string");12 13  return stack_int; // break here;14}15