how to store in array

Posted by Oswaldlily under ASP.NET on 11/21/2011 | Points: 10 | Views : 712 | Status : [Member] | Replies : 1
(i NEED second paragraph alone to stor in array string by string without spaces..)

Initially here we look at two loops over a single string reference's character data. Each loop compares each character in the source string against the space character. However, the first loop is much faster and results in less allocations on the managed heap because it compares characters directly.

The second loop draws in the overhead of creating new string objects based on each character. This is a clear mistake, but one that is made often in code examples on the Internet and likely in many real programs.


Posted by: perfectchourasia-9163 on: 11/21/2011 [Member] Starter | Points: 25


ER sandeep chourasia (on facebook)

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response