[ create a new paste ] login | about

Link: http://codepad.org/O3m5oBAF    [ raw code | output | fork ]

C, pasted on Oct 10:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

int main(){

char str[14];

str[3] = 'a';
str[1] = 'd';
str[2] = 'x';
str[2] = '\0';


printf("score[1] = %s;\n", str);


return 0;
}


Output:
1
score[1] = d;


Create a new paste based on this one


Comments: