predict o/p
#define PrintInt(expr) printf("%s:%d\n",#expr,(expr))
int main()
{
/* The powers of 10 */
int pot[] = {
0001,
0010,
0100,
1000
};
int i;
for(i=0;i<4;i++)
PrintInt(pot[i]);
return 0;
}
int main()
{
/* The powers of 10 */
int pot[] = {
0001,
0010,
0100,
1000
};
int i;
for(i=0;i
PrintInt(pot[i]);
return 0;
}
please post this answer i wanna kno :(
ReplyDeletepot[i] : 1
ReplyDeletepot[i] : 8
pot[i] : 64
pot[i] : 1000
for description of this solution please visit this post
http://code-forum.blogspot.com/2010/11/c-puzzles.html