[ create a new paste ] login | about

Link: http://codepad.org/yylVgAbn    [ raw code | output | fork ]

slevy1ster - C, pasted on Mar 24:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <string.h>

int main(void) {
char *s1 = "sharo";
char *s2 = "shar";
int res = strcmp(s1,s2);
printf("\nResult is %d",res);
return 0;
}


Output:
1
2

Result is 1


Create a new paste based on this one


Comments: