Saturday, August 18, 2018

PRINT STRING


  • Problem Description

    C program to print a string using pointer
  • CODING ARENA
  • #include <stdio.h>
    int main()
    {
      char c[20];
      scanf("%s",c);
      printf("%s",c);

    return 0;
    }
  • Test Case 1

    Input (stdin)
    helloworld
    
    
    Expected Output
    helloworld
  • Test Case 2

    Input (stdin)
    programming
    
    
    Expected Output
    programming

No comments:

Post a Comment