0% found this document useful (0 votes)
21 views

Introduction To C Language

C is a compiled, machine-independent programming language created in 1972 by Dennis Ritchie at Bell Labs. It is a powerful language used widely in operating systems, databases, and embedded systems. Some key applications of C include developing operating systems like Windows and Linux, embedded systems, games, mathematical programs, and database software like MySQL. C keywords declare variables and data types, control program flow with loops and conditional statements, and define functions and structures. Decision statements in C include if, if/else, and nested if to control program execution based on multiple conditions.

Uploaded by

nadyahginice
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Introduction To C Language

C is a compiled, machine-independent programming language created in 1972 by Dennis Ritchie at Bell Labs. It is a powerful language used widely in operating systems, databases, and embedded systems. Some key applications of C include developing operating systems like Windows and Linux, embedded systems, games, mathematical programs, and database software like MySQL. C keywords declare variables and data types, control program flow with loops and conditional statements, and define functions and structures. Decision statements in C include if, if/else, and nested if to control program execution based on multiple conditions.

Uploaded by

nadyahginice
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment # 1

What is a C language?

- C is an extremely popular programming. It is simple, flexible and is a machine-independent,


structured programming language in which it is used in extensively in various applications.
Through C, one can create lists of instructions for a computer to follow. It is one of the thousands
programming languages that is used currently. C is called as a compiled language. In order for a
C program to run, it must be run through a C compiler to see the desired result.

What is the history of 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.

What are the applications of C programming?

The 'C' programming language is used in:

- 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

void nothing or no value


do one of the three types of loop
if & else used to make decisions
static creates a static variable
while one of the three types of loop
goto used to transfer control of the program to the specified label
sizeof evaluates the size of the data
volatile used in creating volatile objects
const constant
register registers variables much faster than normal variables
What are the types of decision/conditional control statements and their syntax descriptions?
decision control
syntax/description
statements

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.

If the condition 1 turns out to be false, automatically condition 2 will be


nested if check along with its statements are executed if it is true. If condition 2 turns
out to be false, then the else part will be executed.

You might also like