Sunday, January 29, 2012

Size of String, char array

If you declare char array with pre-defined size, the size is number of char plus Termination Charcter, /0. So, in the fllowing case:

char CharArray[10];

The maxmum number of char can be stored in CharArray is 9.
Size of String, char array

No comments:

Post a Comment