[ create a new paste ] login | about

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

C, pasted on Nov 18:
1
2
3
4
5
6
7
8
9
10
11
12
#include<stdio.h>
#include<string.h>
int main(void)
{
char C[10]; int i,j;
for(i=0; i<10; i++)
{
char G[10]; sprintf(G,"%d",1234);
for(j=0; j<10; j++){C[i]=G[i];printf("%c\n",C[i]);}
}
printf("C=%s",C);
}


Output:
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
3
3
3
3
3
3
3
3
3
3
4
4
4
4
4
4
4
4
4
4










�
�
�
�
�
�
�
�
�
�










@
@
@
@
@
@
@
@
@
@
�
�
�
�
�
�
�
�
�
�
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
C=1234
Exited: ExitFailure 6


Create a new paste based on this one


Comments: