Jun 10, 2014 at 8:19am UTC
hey guys just wanted to ask a simple question to be sure...how many bytes are in the following character array....thanx in advance
Jun 10, 2014 at 8:25am UTC
Jun 10, 2014 at 8:35am UTC
thanx so can i say dat my char array is 14 bytes or 13 in this question
Jun 10, 2014 at 8:39am UTC
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.
General C++ Programming
© cplusplus.com, 2000-2015 - All rights reserved -
Spotted an error? contact us