Facebook

strings

Strings in Java

String is a non primitive data type in Java. Non primitive refers to an object i.e it refers to a memory location where data is stored and are created by programmers. String is a type of object that can hold text. Syntax to write String String myName = “Hi! Jack.”; String is a class and… read more »

Strings in C

String is a collection of characters that forms a word.It is stored in one dimensional array and terminated by null(\0) character.The size of array is one more than the length of string as it required to store null character.The compiler itself places a null character at the end of array during its initialization Syntax char… read more »

Sidebar