Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CString maximum length

Tags:

mfc

cstring

What is the maximum length in characters a CString object can hold?

like image 317
rec Avatar asked Oct 07 '08 23:10

rec


People also ask

How do you determine CString size?

We can find the length of a String by counting all the characters in it (before the null character) using a for loop. We can also use the built-in string. h library function strlen() or the sizeof() operator.

How long can string be vb net?

Environment String Length. There is a maximum of 32768 characters for any environment string used as a command-line argument.

What is the maximum length?

Maximum Length means the largest total length of a species or species group that may be legally possessed, measured from the tip of the snout to the end of the tail.

What is maximum length of string in Java?

String is considered as char array internally,So indexing is done within the maximum range. This means we cannot index the 2147483648th member.So the maximum length of String in java is 2147483647.


2 Answers

Up to your available memory or INT_MAX-1 (whichever is less).

like image 110
2 revs Avatar answered Nov 03 '22 10:11

2 revs


INT_MAX - 1

like image 31
Alf Zimmerman Avatar answered Nov 03 '22 10:11

Alf Zimmerman