| What is C programming language? Just think C like an Instruction to a Soldier. In order to instruct a soldier, we need to say command like “TURN RIGHT” and the soldier will immediately turn to the right position. However C deal with Computer Processor. Like the Soldier, Computer Processor will only understand instruction. By knowing what instruction to tell Computer Processor to do specific task, then it is really very easy for us to take control of the Computer Processor. We need to differentiate that Soldier Instruction must use Voice Command. However Computer Processor command must be written using C Compiler. Soldier Instruction (voice command): - TURN RIGHT – soldier will turn to right position - TURN LEFT – soldier will turn to left position - WALK FORWARD – soldier will walk forward - STOP – all soldier will stop Computer Processor Instruction (written command) : - printf – print character to monitor - scanf – read character type on the keyboad - for(;;) – do the task forever - getchar() - Gets a single character from the input/keyboard - putchar() - Puts a single character on the screen - while - if - else if - else Relational Operators == equal to != not equal to > greater than < less than >= greater than or equal to <= less than or equal to We should understand that for Computer Processor to perform or execute our instruction, we cannot say to it like the Soldier case. However we need to write the instruction. To write the instruction we need C Compiler. You can download one free compiler from this web site and use it. http://www.bloodshed.net/ Next Page >> |