C
Chad
Let's say I have the following...
#include <stdio.h>
void foo(void)
{
printf("I'm a function call inside of foo\n");
}
void bar(void)
{
printf("I'm a function call inside of bar\n");
}
int main(void)
{
int x = 1;
while(x) {
foo();
bar();
}
return 0;
}
What prevents bar() from executing before foo() is finished in this
while loop?
Chad
#include <stdio.h>
void foo(void)
{
printf("I'm a function call inside of foo\n");
}
void bar(void)
{
printf("I'm a function call inside of bar\n");
}
int main(void)
{
int x = 1;
while(x) {
foo();
bar();
}
return 0;
}
What prevents bar() from executing before foo() is finished in this
while loop?
Chad