Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

char array to string

char arr[ ] = "This is a test";

string str(arr);


//  You can also assign directly to a string.
str = "This is another string";

// or
str = arr;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #char #array #string
ADD COMMENT
Topic
Name
5+8 =