0001,
0010,
0100,
these number are represented in octal ..so u r getting decimal of the same.
1000 -> this is a decimal value;
preceding number by "0" means you are representing it in octal format
similarly preceding "0x" means representing in hexa format.
On Sun, Feb 26, 2012 at 3:38 AM, Rav
#include
#include
#define SIZEOF(arr) (sizeof(arr)/sizeof(arr[0]))
#define PrintInt(expr) printf("%s:%d\n",#expr,(expr))
int main(int argc, char *argv[])
{
/* The powers of 10 */
int pot[] = {
0001,
0010,
0100,
1000
};
int i;