0
i want to know what are the steps preformed by #define MULT(x,y)x*y ?
#include <iostream> using namespace std; #define MULT(x,y)x*y inline int mult(int x,int y) { return x*y; } int main() { int i=2,j=3; cout << MULT(MULT(i,j-1),i) << endl; cout << MULT(i,MULT(i,j-1)) << endl; cout << mult(mult(i,j-1),i) << endl; cout << mult(i,mult(i,j-1)) << endl; return 0; }
1 Answer
0
thanks
i got it :)