Problem Description
Print a string using PointerCODING ARENA::
#include <stdio.h>
int main()
{
char ch[20];
char *ptr;
scanf("%s",ch);
ptr=ch;
while(*ptr!='\0')
printf("%c",*ptr++);
return 0;
}
Test Case 1
Input (stdin)Cse
Expected OutputCse
Test Case 2
Input (stdin)eee
Expected Outputeee
No comments:
Post a Comment