[ create a new paste ] login | about

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

C, pasted on Nov 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<stdio.h>
int main(void){
   char a='b';
   char m[]="漢字abc";
   char mm[][20]={"abc","漢字def"};

   const int n=100; 
   char *pt[n];
   pt[0]="漢字ghi";

   printf("%c\n",a);
   printf("%s\n",m);
   printf("%s\n",&m[0]); 
   printf("%s\n",mm[1]); 

   printf("%s\n",pt[0]);

   return 0;
}


Output:
1
2
3
4
5
b
漢字abc
漢字abc
漢字def
漢字ghi


Create a new paste based on this one


Comments: