#include <iostream>
int main()
{
// ------- some statements ---------
int(a)(1);
// -------- some other statements .......
return 0;
}
I saw this statement in a C++ program. This did not result in a syntax error.
What is a here? Is this valid C++ syntax?
It is okay to put the name of the variable in parenthesis:
So in your case: