C program to print character array

C program to print character array


Output:

Printing the character array:
C o d e R e g i s t e r

Implementation:



Consider the following other implementations of the same problem:

Implementation 1:



Output 1:

C o d e R e g i s t e r

Implementation 2:



Output 2:

Enter the Characters of character array(do not leave spaces between characters):
www.coderegister.in
The character array you entered is:
www.coderegister.in

Implementation 3:



Output 3:

Enter the character array:
www.coderegister.in
The character array you entered is:
www.coderegister.in

Implementation 4:



Output 4:

Enter the size of the character array(no.of.chars + null character):
20
Enter the character array:
www.coderegister.in
The character array you entered is:
www.coderegister.in

Implementation 5:



Output 5:

Enter the character array:
www.coderegister.in
The character array you've entered is www.coderegister.in

Implementation 6:



Output 6:

Enter the character array:
www.coderegister.in
Printing the character array:
www.coderegister.in

Implementation 7:



Output 7:

Enter the character array:
www.coderegister.in
Printing the character array using pointers:
www.coderegister.in