String length in bytes

  • Thread starter Thread starter guy
  • Start date Start date
G

guy

Being lazy here...

How many bytes are used to store a string?

I would guess the (number of characters * 2) + 4

is that correct?

cheers

Guy
 
guy said:
Being lazy here...

How many bytes are used to store a string?

I would guess the (number of characters * 2) + 4

is that correct?

Well, where did you get the 4 from? I believe it's more like 12 or 16 -
but the basics are right.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top