Print out type of literal or variable in C
References: Is there a way to print out the type of a variable/pointer in C? Why are C character literals ints instead of chars? Was trying to find out the type of char/string literals in C. Found a hackish way of doing it. Source code: test.c #include <stdio.h> int main() { char *s = “ABC”; …
Continue reading “Print out type of literal or variable in C”