variable declaration rules in c code example
Example 1: declare variable in c
int i, j, k;
char c, ch;
float f, salary;
double d;
Example 2: declaration in c
#include<stdio.h>
#include<conio.h>
void main()
{
//variable declaration
int a;
//assinging value to a variable;
a=10;
}
Example 3: Declaring Variables in C
int playerScore = 95;
char ch = 'a';
// some code
ch = 'l';