C program to accept a string

C program to accept a string


Output:

Enter a string: CodeRegister
Entered string is "CodeRegister"

Implementation:



Consider the other implementations for the same output:

Implementation 1:



Implementation 2: