I have just discovered how to do this.
printf("%d", variable);
If variable is not an int then gcc -Wall will complain that the types don’t match – and will print out the type of the variable, which is exactly what you are looking for.
I have just discovered how to do this.
printf("%d", variable);
If variable is not an int then gcc -Wall will complain that the types don’t match – and will print out the type of the variable, which is exactly what you are looking for.