Here is my nifty program.
#include<stdio.h>
int main(){
char *str;
str="Hello World!!";
puts(str);
printf("\nEnter a new string: ");
gets(str); // Is this right ?
printf("\nString after entering: ");
puts(str); // And this one ?
getch();
return 0;
}
The program did printed "Hello World!!" but failed to take user input.