Karakter Dizileri

1.2.7 Strings Strings are simply an array of characters encapsulated in double quotes. At the end of the string a null character is appended. Examples: “\x41” and “A” are the same string. char fred[25]=”He said, \”Go away!\””; The value at fred[9] is a double quote. The value at fred[20] is the null character. Faydalı Yetersiz

Daha Fazla

Büyüklük Etiketi

1.2.8 sizeof Keyword Declaration: size_t sizeof expression or size_t sizeof (type) The sizeof keyword returns the number of bytes of the given expression or type. size_t is an unsigned integer result. Example: printf(“The number of bytes in an int is %d.\n”,sizeof(int)); Faydalı Yetersiz

Daha Fazla