Mehyar Posted September 11, 2003 Posted September 11, 2003 Guys, What is the maximum number of characters a string variable can hold ??? Thx in advance Quote Dream as if you'll live forever, live as if you'll die today
Leaders dynamic_sysop Posted September 11, 2003 Leaders Posted September 11, 2003 isn't it around 2gig, i know it's a very large figure going from memory. Quote
Mehyar Posted September 11, 2003 Author Posted September 11, 2003 Well, I dont know about the size... I was looking for how many characters it can handle Quote Dream as if you'll live forever, live as if you'll die today
Administrators PlausiblyDamp Posted September 11, 2003 Administrators Posted September 11, 2003 If it's 2G of memory then it's half as many characters. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Mehyar Posted September 11, 2003 Author Posted September 11, 2003 Ok i am a little bit confused about this.... So you are saying that i can have 1 Gigabyte of characters And a character is 2 bytes so a string may hold 10^9 / 2 which is 500 million characters.. So i can put up to 500 million characters in a string is that right?? Quote Dream as if you'll live forever, live as if you'll die today
Administrators PlausiblyDamp Posted September 11, 2003 Administrators Posted September 11, 2003 Sounds about right. Probably not the most memory efficient way of doing things though ;) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Mehyar Posted September 11, 2003 Author Posted September 11, 2003 Thx a million... Quote Dream as if you'll live forever, live as if you'll die today
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.