User input and replace string template hello username how are you
Answers
Answered by
0
Answer:
I am fine. I am always in nayagarh.
Answered by
0
The replacement of the string can be done with the help of str function.
Explanation:
- # include <stdio.h>
- #include <conio.h>
- Void main()
- {
String str= "hello";
String str 1= "how are you";
str.replace (str.str1);
printf( " the replaced string will be = "+str 1);
getch ();
}
- In this program, the user enters a string called hello and then it will be replaced by a string called how are you.
- A group of characters is called as a string and the user gets two strings and one of the string will be replaced by the other.
- In the output screen, we can find the replaced string.
To know more:
1) What is string theory
https://brainly.in/question/5256194.
2) Difference between list and string
https://brainly.in/question/13529718
Similar questions