// clrscr, char[3], scanf, strcmp, getch, if<br>แสดงการเปรียบเทียบด้วย if กับชุดตัวอักษร
/* http://www.thaiall.com/tc */
#include <stdio.h>
#include <string.h>
#include <conio.h>
main()
{
clrscr();
char s[3];
scanf(
"%s"
,&s);
if
(strcmp(s,
"abc"
)==0) {
printf(
"abc : ok"
);
}
else
"abc : no %s"
,s);
getch();
return
(0);