Introduction To C Language
Introduction To C Language
What is a C language?
- Dated back in 1972, Dennish Ritchie, one of the notable computer scientists known, created a
new programming language called 'C' at the Bell Laboratories. C was created from 'ALGOL', 'BCPL'
and 'B' programming languages. It contains all the features of the following languages mentioned
with additional concepts which makes it unique from the other languages. 'C' is a powerful
programming language that is strongly associated with the UNIX operating system. The 'C'
programming was actually limited to the UNIX operating systems however, as it started spreading
around the globe, the 'C' programming became for commercial use. As of today, 'C' can run under
a variety of operating systems and hardware platforms. Many versions of the language was
released due to the constant evolution as it can be difficult to run an older version of the program
to a latest version a computer or a program runner.
- Embedded systems
- Developing systems applications
- Develop Graphical-related application e.g. Computer, Mobile Games
- Evaluating mathematical equation
- Designing an Operating System
- Developing an Operating Systems such as Apple's OS X, Microsoft's Windows, and Mobile
phone's operating system
- Developing databases; having MySQL as the most popular database software that built using
'C' programing language
- Compiling production
- IOT applications
What are the C keywords and their basic functions?
keyword declares/functions/definition
auto automatic variables
double & float floating type variables
int integer type variables
struct structure
terminates the innermost loop when it is immediately encountered;
break
switch statement is also terminated
switch, case and used when a block of statements has to be executed among many
default blocks
enum enumeration types
typedef used to explicitly associate a type with an identifier
char a character variable
a variable or a function has external linkage outside of the file it is
extern
declared
return terminates the function and returns the value
union used for grouping different types of variables
continue skips the statements after it inside the loop for the iteration
for one out of the three type of loops
short, long,
modifiers that alters the meaning of a base data type to yield a new
signed &
type
unsigned
With these type of statements, if condition is true, then the respective block
if
of code is executed.
A group of statements are executed if the condition is true. If false, the else
if…else
part statements will be executed.