02 C Programming
02 C Programming
INDEX
1 DataTypes in C
2 Variable in C
3 Keyword in C
DATATYPE IN C
#include <stdio.h>
void main()
{
int a = 4000; // positive integer data type
float b = 5.2324; // float data type
char c = 'Z'; // char data type
int f = -185; // -ve integer data type
double i = 4.1234567890; // double float data type
float j = -3.55; // float data type
}
Program :
#include <stdio.h>
int main()
{
return 0;
}
OUTPUT
VARIABLES IN C
A variable is a name of memory location.
type variable_name;
➢ int a;
➢ float b;
➢ char c;
KEYWORDS IN C
A keyword is a reserved word.