Has a way to get the datatype in C?
For example:
int foo; if (foo is int) { // do something }
or something like:
if (typeof(foo
Since C11, you can do that with _Generic:
_Generic
if (_Generic(foo, int: 1, default: 0)) // if(typeof(foo)==int) { // do something }