[ create a new paste ] login | about

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

C, pasted on Dec 14:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include <stdlib.h>
#define N (10)              /* ←キーボードから入力しました */
#define STR ("1234567890")  /* ←これもキーボードから入力しました */
int main(void) {
    char* p;
    int i;
    p = (char*)malloc(N);
    for(i=0 ; i<N ; i++) putchar(p[i]=STR[i]);
    putchar('\n');
    return 0;
}


Output:
1
1234567890


Create a new paste based on this one


Comments: