When compiling this code, the compiler complains about the following error:
error : 'content' was not declared in this scope
When it is apparently declared as an input parameter in the macro function.
#include <iostream>
#define mostrar (contenido) cout << "Resultado " #contenido "==" << ":" << contenido << endl;
using namespace std;
int main()
{
int ai[] = { 2,3 };
int zl = ai[0] + ai[1];
mostrar(zl);
int* pt1 = ai;
int z3 = *pt1;
mostrar(z3);
int* pt2 = ai;
int z4 = *(++pt2);
mostrar(z4);
int *pt3 = ai;
int z5 = *pt3 + *(++pt3);
mostrar(z5);
return 0;
}