1. WAP to declare, assign and print the variable.
void main() { // data-type v_name -> syntax to declare the variable int a; // data-type v_name = value ; -> syntax to initialize the variable int b = 20; clrscr(); // v_name = value -> syntax to assign value to the variable a = 10; // print the variable - %d is a identifier for int data-type printf("%d\n",a); printf("%d",b); getch(); }
2. WAP to describe different data types and variables of C.
3. WAP to describe size of different data-types.