vead
Full Member level 5
- Joined
- Nov 27, 2011
- Messages
- 285
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- india
- Activity points
- 3,815
Hello Everyone
I need help to understand C program.
there are two flags we can set or reset flags.
Can anyone explain ,how does int main work in C language? what is happeneing in program ?
I need help to understand C program.
there are two flags we can set or reset flags.
Can anyone explain ,how does int main work in C language? what is happeneing in program ?
Code C (Mac) - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 int main() { if ( ( Task1flag == 1 ) && ( Task1serviced == 0 ) && ( Task2flag == 0 ) ) { Task1serviced = 1; } if ( (Task2flag == 1 ) && (Task2serviced == 0 ) && (Task1serviced == 1)){ Task2serviced = 2; Task1flag = Task1serviced = Task2flag = Task2serviced = 0; } }
Last edited: