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

C Programming Workshop

Uploaded by

Dennisom
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

C Programming Workshop

Uploaded by

Dennisom
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

C programming Workshop

How many types of programming languages are ?

What is c programming ?

What is the use of C programming language?

Who developed C programming?

What do we use C in real life ?

Why should we learn C programming?

How is the world powered by C.


Use of C programming

It can be used to develop software like operating systems,


databases, compilers, and so on
Dennis Ritchie invented C language.
Use of C in real life
1. Operating Systems:

Scripting of UNIX operating system was the primary purpose behind creation of C.
Additionally, as programs scripted in C get executed with speeds equivalent to
assembly language, C language has been an integral part of the development of
multiple operating systems. Unix-Kernel, Microsoft Windows utilities and operating
system applications, and a large segment of the Android operating system have all
been scripted in C.
2. Development of New Languages:
Efficiency of code execution and simplicity have resulted in C directly or indirectly
influencing development of many languages including C++ which is C with classes,
C#, D, Java, Limbo, JavaScript, Perl, UNIX’s C Shell, PHP and Python, and Verilog. These
languages use C in variable capacity: for instance, in Python, C is used for building
standard libraries, while others like C++, Perl and PHP have syntax and control
structures based upon C.

3. Computation Platforms:
C implements algorithms and data structures swiftly, facilitating faster computations
in programs. This has enabled the use of C in applications requiring higher degrees of
calculations like MATLAB and Mathematica.
4. Embedded Systems:
Various features of C including direct access to machine level hardware
APIs, presence of C compilers, deterministic resource use and dynamic
memory allocation make C language an optimum choice for scripting
applications and drivers of embedded systems.

5. Graphics and Games:


C language has been used in the development of a variety of graphics and
gaming applications, such as chess, bouncing ball, archery etc.
Advantages of C Language
1. C language is a building block for many other currently known
languages. C language has variety of data types and powerful
operators. Due to this, programs written in C language are efficient,
fast and easy to understand.

2. C is highly portable language. This means that C programs written


for one computer can easily run on another computer without any
change or by doing a little change.
3. There are only 32 keywords in ANSI C and its strength lies in its
built-in functions. Several standard functions are available which can
be used for developing programs.
4. Another important advantage of C is its ability to extend itself. A C
program is basically a collection of functions that are supported by the
C library this makes us easier to add our own functions to C library.
Due to the availability of large number of functions, the programming
task becomes simple.
5. C language is a structured programming language. This makes user
to think of a problem in terms of function modules or blocks.
Collection of these modules makes a complete program. This modular
structure makes program debugging, testing and maintenance easier.
Disadvantages of C Language

1. C does not have concept of OOPs, that’s why C++ is developed.

2. There is no runtime checking in C language.

3. There is no strict type checking. For example, we can pass an integer


value.

4. for the floating data type.

5. C doesn’t have the concept of namespace.

6. C doesn’t have the concept of constructor or destructor.


Career Path in C Programming
There are different views of individuals on a career path for C as some people want to learn other

language but some are happy in learning C language. C language is easy to learn but for having a good

career in this language one has to be good in C programming. C programming is very wide and mainly

used for developing different types of operating systems, network drivers, used in developing other

programming languages, security purposes, use of kernels, tokens etc. C is a programming language

that is always in demand despite many other popular programming languages. C has great

opportunities in terms of building career around the world and helps in applying for the real-time

programming positions.
Despite the prevalence of higher-level languages, C continues to empower the world.

The following are some of the systems that are used by millions and are programmed in

the C language.

Microsoft Windows

Microsoft’s Windows kernel is developed mostly in C, with some parts in assembly

language. For decades, the world’s most used operating system, with about 90 percent of

the market share, has been powered by a kernel written in C.


Linux

Linux is also written mostly in C, with some parts in assembly. About 97 percent of the

world’s 500 most powerful supercomputers run the Linux kernel. It is also used in many

personal computers.

Mac

Mac computers are also powered by C, since the OS X kernel is written mostly in C. Every

program and driver in a Mac, as in Windows and Linux computers, is running on a

C-powered kernel.
Mobile

iOS, Android and Windows Phone kernels are also written in C. They are just mobile adaptations of

existing Mac OS, Linux and Windows kernels. So smartphones you use every day are running on a

C kernel.

Databases

The world’s most popular databases, including Oracle Database, MySQL, MS SQL Server, and

PostgreSQL, are coded in C (the first three of them actually both in C and C++).

Databases are used in all kind of systems: financial, government, media, entertainment,

telecommunications, health, education, retail, social networks, web, and the like.
3D Movies

3D movies are created with applications that are generally written in C and C++. Those

applications need to be very efficient and fast, since they handle a huge amount of data and do

many calculations per second. The more efficient they are, the less time it takes for the artists

and animators to generate the movie shots, and the more money the company saves.

Embedded Systems

Alarm clock ,microwave, coffee maker ,TV and radio are embedded systems, powered by C.

You might also like