You are on page 1of 1

hard work is the ultimate to suucess. there is no substitute for hard work. #include<stdio.h> #include<conio.h> #include<string.

h> void print(char *str) { char a[30]; int i=0; while(str!='\0') { printf("\nThe entered string is : %s ",str); str++; } }

int main() { char str1[30]; printf("Enter a string..\n"); gets(str1); print(str1); getch(); return 0; }

You might also like