MacroCrackProblem code: PGM1 |
All submissions for this problem are available.
Write the macro definition of the put(a,b) to get the output as "The result is:s=(the numerical value)"
#include
#define "write the definition here"
main()
{
int s=3;int *f;int e=2;f=&e;
s=s*(*f*s+*f);
put(s,"%d");
}
Input
Output
The results is: s=(numerical value of above arithmetic operation)
| Date: | 2010-02-26 |
| Time limit: | 1s |
| Source limit: | 50000 |
| Languages: | C |
Comments

Fetching successful submissions

#include <stdio.h>#include
#include <stdio.h>
#include <stdlib.h>
#define put(a,str) printf("THE VALUE OF " #a " IS : "str"",a)
int main()
{
int s=3;int *f;int e=2;f=&e;
s=s*(*f*s+*f);
put(s,"%d");
return 0;
}