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; }

5th Feb 2020, 2:37 PM
Lazy_codeR.04
Lazy_codeR.04 - avatar
1 Resposta
0
thanks i got it :)
5th Feb 2020, 3:10 PM
Lazy_codeR.04
Lazy_codeR.04 - avatar