C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
Output w/ gcc 5.4.0 20160609
a = 3
*** stack smashing detected ***: ./ej terminated
Aborted (core dumped)
Output in codeplayground:
a = 10
*/
#include <stdlib.h>
#include <stdio.h>
int main() {
int a = 3;
int b[] = {1, 2};
int c = 4;
b[3] = 10;
printf("a = %d\n", a);
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run