1. 程式人生 > >C語言實例-數組

C語言實例-數組

style img long include size char 字符 return mage

xx

#include <stdio.h>
#include <stdlib.h>

#define ARRAY_SIZE(Array) (sizeof (Array) / sizeof ((Array)[0]))

char cc[] = {
    0xE5,0x1F,0x0C,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
    0x1B,0x00,0x00,0x00,0x2F,0x70,0x61,0x72,0x74,0x69,0x63,0x69,0x70,0x61,0x6E,0x74,
    0x73,0x2F,0x49,0x45,0x54,0x4D,0x2E,0x44,0x30,0x2F,0x70,0x73,0x76
,0x74,0x00,0x07 }; int main() { long int i; printf("main start!\n"); for(i=0; i<ARRAY_SIZE(cc); i++) { printf("%c",cc[i]); //把ASCII碼轉成字符輸出 } printf("\nmain end!\n"); return 0; }

技術分享圖片

xx

C語言實例-數組