rmariani@watmum.waterloo.edu (Rico Mariani) (05/14/88)
main()
{
char a[50];
strcpy(a,"Hello ");
strncat(a,"There",0);
puts(a);
strcpy(a,"Hello ");
strncat(a,"There",1);
puts(a);
strcpy(a,"Hello ");
strncat(a,"There",10);
puts(a);
}
The output is
Hello There
Hello T
Hello There
It should be
Hello (there's a space after the Hello)
Hello T
Hello There
-Rico