Three C lines On Borland please - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Three C lines On Borland please

ZahraaHZahraaH Posts: 2Member
hi all, if someone has the compiler (Borland) , and can try this three lines of C code in it and till me the result , i'll be very thankful !! the three lines are:

[code]char a[10] ="ball" ;
char b[10] ="zoo";
printf("%d",strcmp(a,b));[/code]

i know the the standard definition of this function in C language, but on GCC compiler (on Codeblocks) it returns -1 (not the difference of the two strings) in case the first string is less than the second one,and 1 in the opposite case so i want to to know what it returns on Borland

Comments

Sign In or Register to comment.