Á¤¼ö ÃʱâÈ
int x=5, y=6;
Á¤¼ö ¹è¿ ÃʱâÈ
int xarray[10] = {9, 2, 20, 34, 56, 28, 7, 88, 29, 10};
Á¤¼ö 2Â÷¿ø ¹è¿ ÃʱâÈ
int k[3][4] = {{1,2,3,4},{5,6,7,8},{9,10,11,12}};
int m[3][4] = {{1,2},{3,4},{5,6}};
int p[3][4] ={1,2,3,4,5,6};
¹®ÀÚ ÃʱâÈ
char c='A';
¹®ÀÚ ¹è¿(¹®ÀÚ¿) ÃʱâÈ
char msg1[20] ={'h','e','l','l','o',' ','w','o','r','l','d'};
char msg2[20] ={"hello world"};
char msg3[20] ="hello world";
¹®ÀÚ 2Â÷¿ø ¹è¿ ÃʱâÈ
char image1[3][5] = {{'h','i'},{'s','k','y'},{'b','l','u','e'}};
char image2[3][5] = { {"hi"},{"sky"},{"blue"}};
char image3[3][5] = {"hi", "sky", "blue"};
char image4[3][6] = {{" 1 "},
{" 111 "},
{"11111"}};