[ create a new paste ] login | about

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

C, pasted on Apr 19:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <string.h>

char d[20];

int main(void) {
   d[0]='i';
   d[1]='f';
   d[2]='\0';

   printf("Value of strcmp=%i\n\n",strcmp(d,"if"));
   
   return 0;
}


Output:
1
2
Value of strcmp=0



Create a new paste based on this one


Comments: