You can combine multiple expressions in a single expression using the comma operator. #includemain(){ int i,j,k; k = (i = 4, j = 5); printf("k = %d",k);} k = 5