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/
Microcontroller
What is a Microcontroller?
Microcontroller Specification
Programming PIC16F877A
Playing with a C Programming and PIC16F877A
Creating a Digital Clock using PIC16F877A, LCD and DS1337 Clock IC from Dallas
How to Load Hex File into PIC16F877A
Articles :
Lightning Surge Testing
Bit Error Rate Testing
Insertion Loss Testing
Light Emitting Diode
DC Power Jack
Voltage Regulator and Diode
Transistor and Operational Amplifier
Trimmer Pot, Relay and PCB
Understanding PIC16F877A
Product Development Using PIC16F877A
More Product Development Using PIC16F877A
PIC16F877A Input Output Overview
Interfacing PIC16F877A With LCD
VoIP Basic
VoIP Phone
Using VoIP Through Normal PSTN Telephone
What is Codec?
C Programming Tutorial
Introduction
What is C programming language?
The First C Program
The First C Program - Explanation
Variables
Printf
Reading User Values
Scanf
Looping
Using FOR loop
Arrays
More on Arrays
Example Program that use Arrays to Compare 6 PIN number
If, Else If, Else
Functions
Pointers
Summary