When my tutorial is explaining 'char' it shows two pieces of code. I can't run either of them because I get the error "Undefined reference to WinMain@16".....
andCode:#include <stdio.h>
int maint()
{
int cod;
char c;
c='a';
cod = (int) c;
}
The thing is, I don't really understand char, so I can't really fix it.Code:#include <stdio.h>
int maint()
{
int cod;
char c;
cod=98;
c= (char) cod;
}
Could someone please explain the pieces of code too? Thanks!