Tokens in C - C Tokens
Learn C - C tutorial - c tokens - C examples - C programs
C Tokens
- C tokens are the smallest building blocks which are used to write a program.
- Keywords
- Identifiers
- Variables
- Constants
- Literals
- Operators
- And special characters
Sample Code
#include <stdio.h>
int main()
{
const int num = 99;
const float a = 3.67f;
const char sex ='M';
const char text[]="wikitechy.com";
printf("num=%d \n a=%f \n sex=%c \n text=%s\n",num,a,sex,text);
return 0;
}
Output
num=99
a=3.670000
sex=M
text=wikitechy.com