Order of operations and parentheses


#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a = 4 + 2 * 6;
    printf("Result: %d \n", a);
    a = (4 + 2) * 6;
    printf("Result: %d \n", a);

    return 0;
}



To assign a value to more than one variable


#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a;
    int b;
    int c;
    int d;

    a = 12;
    b = 12;
    c = d = 12;

    printf("%d %d %d %d", a, b, c, d);

    return 0;
}