D
deepak
Hi,
In the following program, could someone help me to understand how y is
generated by compiler. I'm not able to map properly even after getting
output as 100.
#include <stdio.h>
#define PrintInt(expr) printf("%s : %d\n",#expr,(expr))
int main()
{
int y = 100;
int *p;
p = malloc(sizeof(int));
*p = 10;
y = y/*p; /*dividing y by *p */;
PrintInt(y);
return 0;
}
Thanks,
Deepak
In the following program, could someone help me to understand how y is
generated by compiler. I'm not able to map properly even after getting
output as 100.
#include <stdio.h>
#define PrintInt(expr) printf("%s : %d\n",#expr,(expr))
int main()
{
int y = 100;
int *p;
p = malloc(sizeof(int));
*p = 10;
y = y/*p; /*dividing y by *p */;
PrintInt(y);
return 0;
}
Thanks,
Deepak