324 views
–2 votes
–2 votes

1 Answer

1 votes
1 votes
Fun (a++,a++,a++); is compiler dependent we are doing incement of a more than 1 time in same line so is right most a++ done 1st then answer is different , if leftmost a++ done 1st then answer is different . So answer varry from compiler to compiler . This probelm is known as sequence points

Related questions

2 votes
2 votes
3 answers
1
Laahithyaa VS asked Sep 9, 2023
882 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2);else return 1...
1 votes
1 votes
3 answers
4
jverma asked May 23, 2022
1,027 views
#include <stdio.h>int f(int n){ static int r = 0; if (n <= 0) return 1; r=n; return f(n-1) + r;}int main() { printf("output is %d", f(5)); return 0;}Ou...