0

Why and when evaluates from left to right

#include<stdio.h> void test_function(int x, int y, int z) {    printf("The value of x: %d\n", x);    printf("The value of y: %d\n", y);    printf("The value of z: %d\n", z); } main() {    int a = 10;     test_function(a++, a++, a++); } Output The value of x: 12 The value of y: 11 The value of z: 10

18th Feb 2020, 5:32 PM
Lakshmi Reddy Sanikommu
Lakshmi Reddy Sanikommu - avatar
2 Antworten
0
But in which cases our left to right evaluation occurs if the compiler of c has a ability to evaluate from left to right if need ?
19th Feb 2020, 2:54 AM
Lakshmi Reddy Sanikommu
Lakshmi Reddy Sanikommu - avatar