C is mother language of all programming language.
It is a system programming language. It is a procedure-oriented programming language. It is also called mid-level programming language.
C evolved from a language called B, written by Ken Thompson at Bell Labs in 1970. Ken used B to write one of the first implementations of UNIX. B in turn was a descendant of the language BCPL (developed at Cambridge (UK) in 1967), with most of its instructions removed.
So many instructions were removed in going from BCPL to B, that Dennis Ritchie of Bell Labs put some back in (in 1972), and called the language C.
The famous book The C Programming Language was written by Kernighan and Ritchie in 1978, and was the definitive reference book on C for almost a decade.
The original C was still too limiting, and not standardized, and so in 1983, an ANSI committee was established to formalize the language definition.
It has taken until now (ten years later) for the ANSI ( American National Standard Institute) standard to become well accepted and almost universally supported by compilers.
C Programming
History of C Programming
Features of C Programming
More about C Programming
Advantages of C Programming
Disadvantages of C Programming
Write using C programming
This PPT is for First year engineering student,It covered all about C Programming according to Rajastha Technical University Kota.
flowchart, pseudo code, Programming Languages and Language Translators, Identifiers, Constants, Variables, Basic Data Types, Operators, Expressions, type casting, Input / Output Statement, Scope Rules and Storage classes, Preprocessor and Macro Substitution.
C is mother language of all programming language.
It is a system programming language. It is a procedure-oriented programming language. It is also called mid-level programming language.
C evolved from a language called B, written by Ken Thompson at Bell Labs in 1970. Ken used B to write one of the first implementations of UNIX. B in turn was a descendant of the language BCPL (developed at Cambridge (UK) in 1967), with most of its instructions removed.
So many instructions were removed in going from BCPL to B, that Dennis Ritchie of Bell Labs put some back in (in 1972), and called the language C.
The famous book The C Programming Language was written by Kernighan and Ritchie in 1978, and was the definitive reference book on C for almost a decade.
The original C was still too limiting, and not standardized, and so in 1983, an ANSI committee was established to formalize the language definition.
It has taken until now (ten years later) for the ANSI ( American National Standard Institute) standard to become well accepted and almost universally supported by compilers.
C Programming
History of C Programming
Features of C Programming
More about C Programming
Advantages of C Programming
Disadvantages of C Programming
Write using C programming
This PPT is for First year engineering student,It covered all about C Programming according to Rajastha Technical University Kota.
flowchart, pseudo code, Programming Languages and Language Translators, Identifiers, Constants, Variables, Basic Data Types, Operators, Expressions, type casting, Input / Output Statement, Scope Rules and Storage classes, Preprocessor and Macro Substitution.
Introduction to C Programming
Content :
Introduction
-Types of programming language
-Machine Language
-Assembly Language
-High Level Language
Introduction to C programming
-Basic Structure of C Program
-Simple program in C programming
You can get more from our website:
www.programmingcampus.com
At the end of this lecture students should be able to;
Describe features of C programming language.
Justify the terminology related to computer programming.
Define the editing, compiling, linking, debugging stages of C programming
Recognize the basic structure of a C program
Apply comments for C programs to improve readability.
Introduction to C Programming
Content :
Introduction
-Types of programming language
-Machine Language
-Assembly Language
-High Level Language
Introduction to C programming
-Basic Structure of C Program
-Simple program in C programming
You can get more from our website:
www.programmingcampus.com
At the end of this lecture students should be able to;
Describe features of C programming language.
Justify the terminology related to computer programming.
Define the editing, compiling, linking, debugging stages of C programming
Recognize the basic structure of a C program
Apply comments for C programs to improve readability.
Std 10 computer chapter 10 introduction to c language (part1)Nuzhat Memon
Std 10 computer chapter 10 introduction to c language (part1) by Nuzhat Memon
Program and Characteristics of Program
Need of Programming Language
Need of Translator
History of C Language
Features of C Language
First Program in C Language
Structure of C Language (Documentation Section, Symbolic Constant Definition, File Include Section, Global Variable or Declaration Section, Main Function, User Defined Function)
Execution of C Program (Source code, Compiler, Object code, Linker, Executable code, Loader)
Learn c language Important topics ( Easy & Logical, & smart way of learning)Rohit Singh
Learn C language with an easy way including all important topics in C.
Learn c language Important topics ( Easy & Logical, & smart way of learning)
preprocessor Directive, Search Strategy, Header file, return 0 in C, return, main function, flow of execution, explicit return, function, return type and non return type function. Run- time Environment, type specifier, void keyword, 32 keyword in C, openning curly brace and closing curly brace, system library, single argument, String literal is an unnamed array with element of type char.
The C is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system.
The C++ Programming Language is basically an extension of the C Programming Language. The C Programming language was developed from 1969-1973 at Bell labs, at the same time the UNIX operating system was being developed there. C was a direct descendant of the language B, which was developed by Ken Thompson as a systems programming language for the fledgling UNIX operating system. B, in turn, descended from the language BCPL which was designed in the 1960s by Martin Richards while at MIT.
In 1971 Dennis Ritchie at Bell Labs extended the B language (by adding types) into what he called NB, for "New B". Ritchie credits some of his changes to language constructs found in Algol68, although he states "although it [the type scheme], perhaps, did not emerge in a form that Algol's adherents would approve of" After restructuring the language and rewriting the compiler for B, Ritchie gave his new language a name: "C".
Introduction The evolution of Computers has come through different ages before it has reached present-day computers. The origin of the development of the computer was more than 3000 years ago
Enhanced adaptive security system for SMS – based One Time Password Chandrapriya Rediex
Wireless Network is used for all Portal Electronic Devices (PED).
The main concept of using Authentication Network in PED for Online Banking.
The user authenticates the transaction has a strong static ID and password.
SMS based OTP provides an additional security layer for an authorized person.
All Banks provide the same process for security purposes for they are beneficiaries.
According to the recent thread, it is also vulnerable to various attacks. In this paper how it does can happen and what is the mechanism to prevent security-based OTP throughout using IMEI.
Keywords – PED, Authentication, OTP, IMEI.
Enhanced adaptive security system for SMS – based One Time PasswordChandrapriya Rediex
Wireless Network is used for all Portal Electronic Devices
(PED). The main concept of using Authentication Network in
PED for Online Banking. The user authenticates the
transaction has a strong static ID and password. SMS based
OTP provides an additional security layer for an authorized
person. All Banks provide the same process for security
purposes for they are beneficiaries. According to the recent
thread, it is also vulnerable to various attacks. In this paper
how it does can happen and what is the mechanism to
prevent security-based OTP throughout using IMEI.
Keywords – PED, Authentication, OTP, IMEI.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
3. INTRODUCTION
• C is one of the most popular computer languages today.
• C language has evolved from three different structured language ALGOL, BCPL and
B language.
• C was an offspring of the ‘Basic Combined Programming Language’(BCPL) called
B language, developed at Cambridge University in 1960.
• B language invented by Ken Thompson developed by Martin Richards.
• B language was modified by Dennis Ritchie at AT & T’s Bell laboratories in 1972.
• The new language was named C.
• C adopted by ‘American National Standard Institute’(ANSI).
• In 1990, a version of C language was approved by the ‘International Standard
Organisation’(ISO) and that version of C is also referred to as C89 and C99.
5. HISTORY OF C
Year Developed by
1960 International Group
1967 Martin Richard
1970 Ken Thompson
1973 Dennis Ritchie
1989 ANSI Committee
1990 ISO Committee
ALGOL
BCPL
B
Traditional C
ANSI CIS C
ANSI/ISO C
6. FEATURES OF C
• C has been written in assembly language.
• C is a high-level structured oriented programming language.
• C is a robust language with rich set of built-in function and operators.
• Programs written in C are efficient and fast.
• C is highly portable, programs once written in C can be run on another machines
with minor or no modification.
• C is basically a collection of C library functions, we can also create our own
function and add it to the C library.
• C is easily extensible.
7. BEST OF C
• One of the early programming languages.
• Still the best programming language to learn quickly.
• C language is reliable, simple and easy to use.
• C language is a structured language.
• Modern programming concepts are based on C.
• It can be compiled on a variety of computer platforms.
• Universities preferred to add C programming in their courseware.
• C program can be viewed as a group of building blocked called function.
8. APPLICATIONS
C language has widely uses, some main uses are given below.
• Used to develop software's that control embedded systems. Examples of some
embedded system are Washing machine, Microwave oven, etc.
• For creating computer applications.
• UNIX Operating System is developed in C language.
9. BASIC STRUCTURE OF C PROGRAM
More section
Documentation Section
link Section
Definition Section
Global Declaration Secation
{
Declaration Part
Executable Part
}
Subprogram Section
Function 1
Function 2 ( User – defined
. Function)
.
Function n
10. EXAMPLE
#include<studio.h> / link section /
int total=0; / Global declaration and definition section /
int sum(int,int); / Function declaration section /
int main() / main function /
{
printf(“ this is a C programn”);
total=sum(1,1);
printf(“sum of two numbers:%dn”, total);
return 0;
}
int sum(int a, int b) / User defined function /
{ / Definition section /
return a+b;
}
11. DESCRIPTION FOR EACH SECTION
Documentation Section:
we can give comment about the program, create or modified
date, author name etc.
The character or words or anything which are given between
“/*” and “*/”, won’t be considered by C compiler for compilation process.
There will be ignored by C compiler during compilation.
Link Section:
The link section consists of the header files of the functions that
are used in the program.
It provides instructions to the compiler to link functions from the
system library.
12. CONT.…
Definition Section:
All the symbolic constants are written in definition section. Macros
are know as symbolic constants.
Global Declaration Section:
The global variables that can be used anywhere in the program are
declared in global declaration section.
This section also declares the user defined functions.
FUNCTION PROTOTYPE DECLARATION SECTION:
Function prototype give many information about a function like
return type, parameter names used inside the function
13. CONT.….
main() Function section:
Every C program is started from main function and this function
contain two major sections called
Declaration Section and
Executable Section.
Declaration section declares all the variables that are used in executable part.
User Defined Function Section:
User can define their own function in this section which perform
particular task as per the user requirement.
14. EXECUTING A “C” PROGRAM
Executing a program written in C involves a series of step.
There are:
Creating the Program.
Compiling the program.
Linking the program with function that are needed from the C library.
Executing the program.
17. CONT.…
Compiler takes high level human readable program as input and
convert it into the lower level code.
This conversion takes place using different phases.
Different phases of compilers:
Analysis phase
Synthesis phase
19. LEXICAL ANALYSIS:
Task of lexical analysis is to read the input characters and produce
as output a sequence of Tokens that the parser user for syntax analysis.
Token
Source Lexical Parser
Program analyser
Get next
token
symbol
table
Lexical Analyser is First Phase of compiler.
Input to lexical analyser is “Source Code”.
20. CONT.….
Lexical analysis identifies different Lexical units in a Source code.
Different Lexical classes or Tokens or Lexemes.
Identifiers
Constants
Keywords
Operators
Lexical analyzer is also called “Linear Phase” or “Linear Analysis” or
“Scanning”.
Individual Token is also called Lexeme.
Lexical analyzer’s output is given to Syntax analysis.
21. SYNTAX ANALYSIS
• It is Second phases of compiler after Lexical Analyzer.
• It is also called as Hierarchical Analysis or Parsing.
• It Groups Tokens of source program into Grammatical Production.
• In short Syntax analysis generates Parse tree.
22. SYNTAX ANALYSIS: PARSE TREE
x = a + b;
It this statement syntax analyzer will create a parse tree from the
Tokens.
Assignment statement
=
Identifier Expression
x +
Identifier Identifier
a b
23. PARSE TREE: EXPLANATION
Syntax analyzer will check only Syntax not the meaning of
Statement.
explanation:
Addition operator plus (‘+’) operator on the two operands.
Syntax analyzer will just check whether plus operator has two
operands or not.
It does not checks the type of operands.
24. SEMANTIC ANALYSIS
Semantic analysis is the third phase of compiler.
Data type of Fist operand
Data type of Second operand
Check whether + is binary or unary
Check for number of operands supplied to operator supplied
to Operator Depending on type of operator (Unary / Binary / Ternary)
25. SOME BASIC SYNTAX RULE FOR C PROGRAM
• C is a case sensitive language so all C instruction must be written in lower case
letter.
• All C statement must be end with a semicolon.
• Whitespace is used in C describe blanks and tabs.
• Whitespace is required between keywords and identifiers.
27. PROGRAM EXPLANATION
Header File:
standard input and output (predefined)
#include<studio.h>
pre-processor directive
The pre-processor is a software program that will expand the source code while the program
is compiled.
pre-defined is used to display the results on the standard output.
Syntax:
#include<path-space>
< > angle-bracket form, pre-processor to search the directories that are specified by the
include.
28. CONT.….
main( )
This is the point where the execution begins when the program is run.
main( ) is the calling and also user-defined function.
{ } – name of parentheses (the two brackets properly called Braces).
This indication to the compiler that this is a function.
“ ” – The end result is that whatever is included between the Quotation marks
will be displayed on the monitor when the program is run.
29. CONT.….
; (semi-colon) – used as a statement Terminator.
so is required as a signal to the compiler that this line is complete.
printf (executable statement) – is the predefined, standard C function for printing
output.
n (new line character) – C compiler consider the combination of the(black lash)
and (letter n) as a one character. So it return the cursor to
the left side of the monitor and print the new line.
30. ADVANTAGES
• C is the building block for many other programming languages.
• Programs written in C are highly portable languages.
• Several standard functions are the (like in-built) that can be used to develop
programs.
• C program are basically collections of C library function, and it’s also easy to add
own function in to the C library.
• The modular structure make code debugging, maintenance and testing easier.
31. DISADVANTAGES
• C does not provide Object Oriented Programming(OOP) concepts.
• There is no runtime checking in C language.
• There is no strict type checking.
Example, we can pass on integer value.
• There is no concepts of Namespace in C.
• C does not provided binding or wrapping up of data in a single unit.
• C does not provide Constructor and Destructor.