>scanf("%y", &y);
%y is not a scanf flag.
>printf("%s%s", userstrings[x],userstrings[y]);
userstrings[x] holds the concatenated strings, so that's all you have to print.
>printf("%s", strncmp(userstrings[x],userstrings[y],80));
This will print 0, 1, or -1, which is an integer, not a string. But then you want to use that value again in the test, a better way would be:
Code:
printf ( "The two strings you compared are :\n%s, %s",
userstrings[x], userstrings[y] );
if ( strncmp ( userstrings[x], userstrings[y], 80 ) != 0 )
/* Not equal */
else
/* Equal */
-Prelude