Sunday, August 19, 2018

PRINT THE GIVEN STRING

  • Problem Description

    Print a string using Pointer
  • CODING ARENA::
  • #include <stdio.h>
    int main()
    {
      char a[100];
      scanf("%s",a);
      printf("%s",a);
      

    return 0;
    }
  • Test Case 1

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

    Input (stdin)
    eee
    
    
    Expected Output
    eee

No comments:

Post a Comment