This concludes the discussion of C statements. Coming next: C functions, pointers, advanced data structures and more. For the moment, here's a little joke program to test your understanding of C. Try to find the bug (it's really simple)!
#include <stdlib.h> #include <radar.h> #include <missiles.h> /* The World's Last C Bug */ void main() { for (;;){ int invasion = get_radar_status(); if (invasion = 1) launch_missiles(); } }




Add new comment