The assignment operator is '=' : Assignment Operator « Operator « C Tutorial






The statement is in the format: Var = expression;

#include <stdio.h>

main(){
    int i,j,k;
   
    i = 6;    
    j = 8;
    k = i + j;
   
    printf("sum of two numbers is %d \n",k);
}
sum of two numbers is 14








5.1.Assignment Operator
5.1.1.Assignment operator
5.1.2.The assignment operator is '='