#include <stdio.h>typedefunsignedcharuint8_t;typedefsignedcharint8_t;intmain(){int8_t m =15;int8_t n =10;int8_t k1 = m * n;printf("m*n: %d (%x%b)\n",k1,k1,k1);return0;}
int copy_array(int *array, int count)
{
int i;
int *myarray = (int*)malloc(count*sizeof(int));
if (myarray == NULL)
return -1;
for (i = 0; i<count; i++)
myarray[i] = array[i];
return count;
}
int a = 0x80000000;
int b = a/-1;
printf("%d\n",b);
int a = 0x80000000;
int b = -1;
int c = a/b;
printf("%d\n",c);
(x>=0 ? x : (x + 31)) >> 5
int div32(int x)
{
int b = (x>>31)&0x1f;
return (x + b)>>5;
}