What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-07 23:10:36
tochararray in javascript
// there is not toCharArray() function in javascript .. // if you want to split string into char array .. then do this method.. let name="hello"; let charArray=name.split(''); // this split string into char .. console.log(charArray); // outpu... Add solution -
C++ 2022-02-02 17:55:13
working with char and string c++
// syntax: // char <variable-name>[] = { '<1st-char>', '<2nd-char>', ... , '<Nth-char>', '\0'}; // example (to store 'Hello' in the YourVar variable): char YourVar[] = {'H','e','l','l','o','\0'}; // NOTE: the \0 marks the end... Add solution -
Other 2022-01-22 10:31:02
String.toCharArray()
// String toCharArray() method example or string to char array java public class StringToCharArrayDemo { public static void main(String[] args) { String strInput = new String("Flower Brackets"); // using toCharArray() method ja... Add solution -
C++ 2021-11-10 03:13:14
appending string in c++
#include<iostream> #include <string> int main() { //"Ever thing inside these double quotes becomes const char array" // std::string namee = "Caleb" +"Hello";//This will give error because adding const char array ... Add solution -
C 2021-10-28 21:12:10
declare character array statically?
char array[4] = "123"; Add solution -
Java 2021-10-22 10:58:09
valueof in java
/* The java string valueOf() method converts different types of values into string. By the help of string valueOf() method, you can convert int to string, long to string, boolean to string, character to string, float to string, double to string... Add solution