Use "+".
Example: String string = "does this answer " + "your question?";
Concat()
public int getStringLength(String val) { return val.length(); } There is an inbuilt functionality in strings that counts the number of alphabets in a string called length()
This is not a question.
Yes
If you don't need to preserve the first string you could just iterate over the second string and copy each character onto the end of the first string, then return that
v can concatenate two string by using a function like: select CONCAT( CONCAT('ename','e_mrks'),"name","marks" from student;
Concat()
public class class1{public void changeCase(String str){String str1=str.toUpperCase();String str2=str.toLowerCase();System.out.println(str1);System.out.println(str2);System.out.println("After concatenation "+("to".concat("get").concat("her")));}public static void main(String[] args){class1 c1=new class1();c1.changeCase("Hello");}}
Without any function is impossible. So I'll assume you mean any coded function, in which case the predefined function below is your answer.$string = strrev($string);
shashi
GetA is a math function and not a string function.
public int getStringLength(String val) { return val.length(); } There is an inbuilt functionality in strings that counts the number of alphabets in a string called length()
SELECT char_length (...) FROM ...
The string function is strlength and it is evoked to return the length of a string.
This is not a question.
Yes
Sure, you can write a function in C to convert a string to Pig Latin without using pointers by passing the string as a parameter and manipulating it directly within the function. You can split the string into words, check if a word starts with a vowel or consonant, and then apply the appropriate transformation following the rules of Pig Latin. Remember to allocate enough memory for the modified string to prevent buffer overflow.