[ create a new paste ] login | about

Link: http://codepad.org/HwdsLFH3    [ 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
18
#include <stdio.h>

int main(){

char str[14];

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


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

return 0;
}


Output:
1
2
3
score[1] = adx;
score[3] = ~;
score[4] = adx;


Create a new paste based on this one


Comments: