[try Beta version]
Not logged in

 
charcter arrays

Jun 10, 2014 at 8:19am
hey guys just wanted to ask a simple question to be sure...how many bytes are in the following character array....thanx in advance

 
  char mystr[]="Good morning!";
Jun 10, 2014 at 8:25am
Jun 10, 2014 at 8:35am
thanx so can i say dat my char array is 14 bytes or 13 in this question
Jun 10, 2014 at 8:39am
Your array contains 14 characters: 13 letters + trailing zero. As char is defined to be 1 byte in size, you can say your array is 14 bytes in size.
Topic archived. No new replies allowed.