Canna

Saturday, 15 June 2019

PRINT THE GIVEN STRING

  • Problem Description

    Print a string using Pointer
  • Test Case 1

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

    Input (stdin)
    eee
    
    
    Expected Output
    eee
  • Program
  • #include <stdio.h>
    #include <string.h>
    int main()
    {
      char str[100];
      scanf("%s",str);
      printf("%s",str);
    
    
        
     return 0;
    }

No comments:

Post a Comment

Note: only a member of this blog may post a comment.