Answers for "# in c++"

C++
0

# in c++

You can use '#' sign to get exact name of an argument passed to a macro:
#define what_is(x) cerr << #x << " is " << x << endl;
int variable = 376;
what_is(variable);
// prints "variable is 376"
Posted by: Guest on April-09-2021

Browse Popular Code Answers by Language