PRINT STRING

Description:

C program to print a string using pointer Test Case 1 Input (stdin) helloworld Expected Output helloworld Test Case 2 Input (stdin) programming Expected Output programming

Program :

  • #include <stdio.h>
    int main()
    {
      char c[20];
      scanf("%s",c);
      printf("%s",c);

    return 0;
    }