Professional Documents
Culture Documents
Session : SP-2021
Course Code : CSC103
Language as a tool : C Language (IDE)
Credit Hours :3
Course : Project Based
Proposal Submission :
Project Submission :
Trunitin
LMS
Books and Lab Manual Recommended
Book:
1. How to Program in C?
by Paul and Harvey Deitel
- Functions.
Language
A vocabulary and set of grammatical rules for instructing a computer to perform
specific tasks. The term programming language usually refers to high-level
languages, such as BASIC, C, C++, COBOL, FORTRAN, Ada, and Pascal. Each language
has a unique set of keywords (words that it understands) and a special syntax for
arrangement of program instructions.
C Language
Developed in 1972 by Dennis Richie in Bell Labs located in USA (AT&T)
General purpose high-level language
Originally developed for Unix operating system
Unix and Virtually all Unix applications are written in C language
Used in embedded systems, developing system applications, also used to develop the
desktop applications.
Most of the applications of adobe are developed using C language
General Information about C
Popularity
Due to its flexibility of its Kernels of windows are
use of memory management written in C
C can manage easily and Its hard because computers
effectively to the system are complicated and C only
level resources by its provides a small amount of
flexibility abstraction away from how
Memory can be accessed computer works.
easily. We can work with hardware
Good choice for system programming using C
level programming
Modularity
Easy to handle / write code
Debugging is easy
Best for starting career as
programmer
Other programming languages and
usefulness.
Python JAVA
Easy to learn Object Oriented
Open source Platform independent
Easy integration with web services Famous for its portability, write
Data Structures are user friendly. once and run anywhere
GUI based desktop application Widely used in web and application
It is very popular for machine learning development as well as Big Data.
and deep learning Platforms : Web, Mobile and
Useful to create popular video games Desktop
Used for accuracy using scientific and
computational applications.
Platform web and desktop both
Other programming languages and
usefulness.
Java Script and Type Script Swift
Object Oriented CPL Apple developed swift in 2014
Commonly used to create Became popular in march 2017
interactive effects inside web Open Source PL
browsers.
Easy to learn
Type Script is a superset of Java
Script
Also used at the front end of
several popular websites like
google, Wikipedia, Youtube and
Amazon.
Other programming languages and
usefulness.
C# (C sharp) C & C++
Microsoft Oldest commonly used PL
One of the powerful PL It is root of other PLs
More like C++ Learning C first provides a valuable
foundation for C++ or any other
Suited for applications on windows,
language
Android, and iOS.
C and C++ are considered as high
Bing, Dell, Visual Studio developed
performance languages
in C#
What is programming
DEFINITION
A “Program” is a precise sequence of steps to solve a
particular task/problem.
System software
operating systems, device drivers
(Directly interacting with Hardware)
The first two of these are classified for running software on computers
(i.e., actually using the computers),
while the last one is about developing the software that may or May not interact with the
hardware directly.
The Main Function void main()
It is a part of every program which is itself a function and
calls all other functions used in the program.
The parentheses after main indicate the block of program
code within main or any structure called body of the code.
Every C program begins execution at the main function.
The main is by-default “void” but may have some other data
types like int main() etc.
Main declared as integer may return any whole number
The void in main parentheses means main does not receive
any information.
First Program in C
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf(“My First Program”);
getch();
}
________________________________________________________________________
Note: