See the below code:
void func(int x)
{
printf("%d",x);
}
int main()
{
int j=0;
func(j++);
return 0;
}
What should be the output?
The C Standard says that there is a sequence point before the actual
function call. So, according to me it should have been 1 but I got
0(zero) on my screen.
void func(int x)
{
printf("%d",x);
}
int main()
{
int j=0;
func(j++);
return 0;
}
What should be the output?
The C Standard says that there is a sequence point before the actual
function call. So, according to me it should have been 1 but I got
0(zero) on my screen.
Comment