TCS Coding Practice Question | Concatenate 2 Strings
Input: str1 = "hello", str2 = "world" Output: helloworld Input: str1 = "Geeks", str2 = "World" Output: GeeksWorld
- Since the Strings are entered as Command line Arguments, there is no need for a dedicated input line
- Extract the input Strings from the command line argument
- Concatenate the given strings using the respective methods.
- Print or return the concatenated strings
Want to learn from the best curated videos and practice problems, check out the C++ Foundation Course for Basic to Advanced C++ and C++ STL Course for the language and STL. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.
My Personal Notes arrow_drop_up