[ create a new paste ] login | about

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

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

#define LENGTH (10)

int main(void)
{
int i;
char str[LENGTH] = {0};

strcpy(str,"abc re t");

for(i = 0;i < LENGTH;printf("%c",str[i++]));
printf("\n");

printf("%s\n",str);

return 0;
}


Output:
1
2
abc re t
abc re t


Create a new paste based on this one


Comments: