Unit 1 INTRODUCTION
Unit 1 INTRODUCTION
Programming-I
Unit-I
Introducton
By
Mr. Harshal S. Hemane
Assistant Professor,
Department of Electronics & Communication Engineering,
Bharati Vidyapeeth
(Deemed to be University)
College of Engineering, Pune
Computer Programming
Computer programming is the process of writing code to
facilitate specific actions in a computer, application or software
program, and instructs them on how to perform.
Basic Type of Programming Language
C Language
The C language is a basic programming language and it is a very popular
language, particularly used in embedded system ,game programming,
Because C language includes the additional packing of the C++, Every
programmer uses this language because it makes programs faster .
However the value of this language gives the reusability of C++ to get the
slight increase in performance with C language
Why to Learn C Programming?
C Vs C++ Vs Java
APPLICATION OF C
“Structure of C Program”
Program has six section The six sections are
1. Documentation
2.Link
3. Definition
4. Global Declarations
5.Main functions
6. Subprograms
1.Documentation Section
the Documentation Section consists of a set of
comment lines giving the name of the
Programmer, date, and other details about the
program. The documentation section helps
anyone to get an overview of the program.
example
/*
* File Name: Helloworld.c
* Author: ABC(name of programmer)
* date: 25/11/2020
* description: a program to display hello world
* no input needed
*/
IMP
Single line comments
Multi-line comments
/* Comment*/
2. Link Section
Invalid identifiers
1x - begins with a digit
char - reserved word
x+y - special character
Differentiate between Keywords
words and identifiers
What are Data types in C
Programming?
In C programming, data types are just the same
what their name suggests. They represent the
kind of data to store. They are used to declare
several functions as well as variables in a
program
C – Constant