a very simple question (but i don't know)

how to write a program that receive a string from keyboard and then print it out. i write a program:
main()
{
char str[80];
gets(str);
printf(str);
}
but when i compile it, the system said something like "new line is not last charicter" and sometime the system said "a3.c is up to date"
what does them mean?
thanks.

hi!

when you get the message: "a3.c is up to date", delete the executable created in the earlier compile \(maybe a.out\)

use the FORMAT string in printf like: printf\("%s", str\); 

Rgds
SHAIK