C
Ceriousmall
I've wrote some code containing the statement printf("%s %d %d\n",
some_str, some_funct(), some_var)
where some_var is an extern variable that's assigned its value within
some_funct().
However, the value of some_var is not printed unless the call to this
variable is placed within a separate printf() statement.. i.e.
printf("%s %d", some_str, some_funct())
printf(" %d\n", some_var)
So I'm wondering, what would this behavior?
If need be I'll post the code aswell.
some_str, some_funct(), some_var)
where some_var is an extern variable that's assigned its value within
some_funct().
However, the value of some_var is not printed unless the call to this
variable is placed within a separate printf() statement.. i.e.
printf("%s %d", some_str, some_funct())
printf(" %d\n", some_var)
So I'm wondering, what would this behavior?
If need be I'll post the code aswell.