Hi All,
While running a piece of code on Linux and HP i found the differenc in the result.
Can Anyone Explain Why it is giving different results?
#include <stdio.h>
int main()
{
int a = 0;
int b = 30030;
int c = 34094;
int d = 0 ;
d = memcmp(&b,&c,sizeof(int));
printf ("Comparison between b and c : %d",d);
return 0;
}
On HP : This returns : “Comparison between b and c : -16”
On Linux This returns : “Comparison between b and c : 1”