refactor
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include <stdlib.h>
|
||||
#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;
|
||||
PrintInt(y);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user