Beginner C/C++

Moderators: None (Apply to moderate this forum)
Number of threads: 5427
Number of posts: 16956

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Three C lines On Borland please Posted by ZahraaH on 22 Apr 2011 at 2:22 AM
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:

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


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
Report
Re: Three C lines On Borland please Posted by AsmGuru62 on 22 Apr 2011 at 6:55 AM
-24 on TC31.
Report
Re: Three C lines On Borland please Posted by ZahraaH on 22 Apr 2011 at 8:25 AM
Thanxx alot :)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.