diff --git a/input_string_using_pointer.c b/input_string_using_pointer.c new file mode 100644 index 0000000..541401f --- /dev/null +++ b/input_string_using_pointer.c @@ -0,0 +1,14 @@ +#include +int main() +{ + int i; + char a[50]; + char *p; + printf("Enter the string : "); + gets(a); + p=a; + while(*p!='\0') + { + printf("%c",*p); + p++; } +}