SlideShare una empresa de Scribd logo
1 de 7
1 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014
C
C is a programminglanguage developed at AT & T’s Bell Laboratories of USA in 1972 by Dennis Ritchie.
C is a computerProgramminglanguage that means that you can use c to create lists of instruction for a
computerto followcisone of thousandsof programminglanguages currently in use c has been around
for several decades and has won widespread acceptation because it gives programmers maximum
control and efficiency.Cisan easyto learnitisa bitmore cryptic initsstyle than some other languages,
but get beyond that fairly quickly.
FEATURES OF C LANGUAGE:
 C is a case sensitive language
 C is a collection of libraries
 Libraries is a collection of Functions
 Function is a collection of Statements
 Statements is a collection of Collectors
 C language can Support IDE “Integrated Development Envorment”
 C language can support only Compiler Translators
 A C file Must Be .cpp (C plus plus)
C Keywords
Keywords are the words whose meaning has already been explained to the C compiler (or in a
broad sense to the computer). The keywords cannot be used as variable names because if we
do so we are trying to assign a new meaning to the keyword, which is not allowed by the
computer. Some C compilers allow you to construct variable names that exactly resemble the
keywords. However, it would be safer not to mix up the variable names and the keywords. The
keywords are also called ‘Reserved words’.
IDE:
IDE abbreviate as “Integrated development envorment”. It is a platform that we can type any c
program, compile, execution and display of results. IDE is a programming envorment that typically
consistof code editor, acompiler,adebugand graphical user interface (GUI). The IDE is May stay alone
application or may be included as a part of computer program. IDE is and interface between user and
computer that perform simultaneously.
COMMON EXAMPLE: GW-Basic, Visual Basic, C Language etc
2 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014
Q: Define Header Files?
HEADER FILES:
DEFINATION:
Headerfile isa collectionof functionthatfoundindifferentlibraries.A headerfileisalwaysdefine inthe
top of program and found in include directory. The header files are always assigned with sign of #. An
every header file contains different functions like <math.h> library is containing of different
mathematical functions.
Q: How Many Files to generate a compiler after the execution of C Program?
C FILES:
There are four files to generate a compiler automatically
1. .Cpp
2. .Bak
3. .Obj
4. .Exe
.CPP
The .Cpp isa source file thatbasedona c programmingcode withoutthisfile we cannot maintain other
files the extension of .cpp is recognize as c plus plus code
.BAK
The backup file isautomatically generated file that provide backup of source code suppose the source
file isdeletedwe canuse backupfile asa source code butit necessarytorename the extensionof file as
.cpp
.OBJ
The .obj is objectorientedfile thatcontain amachine code and store errors, values, and result oriented
machine code without the object file the source program cannot entertain.
.EXE (Executable File)
The Executable file isrunwithoutanysupportof program sometimes it called compiled file so the .exe
file is a powerful extension that execute computer programs and there is no need to install any
computer program
3 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014
Q: Define Gotoxy Statements?
Goto xy statements:
The goto xystatementisusedto set the cursor on the screen and display text on the particular column
and row/line. There are 256 columns ( 0 to 255) and 25 rows (0 to 24).
SYNTEX: goto xy (C,R);
EXAMPLE:
Gotoxy(10,10);
Printf(“ YASIR “);
Q: Define Goto Statements?
GOTO STATEMENT:
The goto statement is a branching statement that we can move the cursor in the particular line
sometimes we can say it’s a conditional statement.
SYNTEX: goto c;
EXAMPLE:
Char a=’B’;
c:
printf(“ HI”);
getche();
goto c;
BREAK STATEMENT:
The break statement is used to terminate the nearest statement or do, for , switch-case and while
statement. The break statement is also perform in loops it mean we can terminate in the mid of loop.
SYNTEX: break;
EXAMPLE:
Int a;
Printf(“1.Books Name”);
Printf(“ 2. Exit “);
Switch(no)
{
Case 1;
Printf(“ C language “);
Break;
Default:
Break;
Printf(“Wrong Entry”);
}
4 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014
Q: Define Return Statements?
RETURN STATEMENT:
The return statement is used to terminate the execution of function and return to the calling of
function. The return function is also used to return the value of calling of function.
SYNTEX: return expression
If no return statement found in function definition, the control automatically returns to the calling of
function.If a returnvalue is not required, declare the function with the data type of void otherwise to
return the integer data type.
Q: Define Continue Statements?
CONTINUE STATEMENT:
The continue statement is used to pass the control of next iteration of the nearest do…while, and for
and by pass the remaining statements in the do, for, and while statement of the body.
SYNTEX: continue;
The Continue statement is always perform when we cross of the body of the any loop and moves the
cursor or pointer in the next statement.
EXAMPLE:
void main (void)
{
clrscr();
int a;
for(a=1;a<=10;a++)
{
if(a==5)
continue;
printf("n %d",a);
}
5 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014
Q: Define Variable And Its Types?
VARIABLES:
A variable is a name of value that store unique value. A variable is a collection of characters
normally in any language a variable can perform very important role that capable to store
values. A variable can identify by their names like a,b,c,x,y,z
RULES OF VARIABLES:
 A Variable must be a character
 We cannot define numeric number as a variable
 We can assign variables as a character and numeric like A1,A2,A3
 We can assign a variable 8 to 12 characters
 Variable are not allowed to assign special symbols
 Example a=10; b=’c’;
 We Cannot allow duplicate values
TYPES OF VARIABLES:
1. Constant Variable or String Value
2. Numeric Variable
CONSTANT VARIABLES:
A constant is a collection of characters and character may be A to Z, a to z.. 0 to 9, & $
The constant variable cannot change during the execution e.g b=’c’; z=55;
NUMERIC VARIABLES:
The numeric variable is use to store only numeric values e.g c=10(constant numeric value). The
variable may be change during the execution of computer program.
6 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014
Q: What Are Data Types?
DATA TYPES:
Data types are use to store which type of data stored in the variables. Data types are always
identifying by their name, data types is a computer memory location that store data. Data types
are always define in the beginning of computer program. There are various data types used in c
language but major are,
INTEGER DATA TYPE:
Integer data type is use to store sure numeric value. Integer data type is capable to store -
32768 to 32767 and accommodate 4bytes
SYNTEX: int a;
CHARACTER DATA TYPE:
Character data type is always store string value and occupies 2 bytes and store 0 to 255 at a
time
SYNTEX: char a[30];
FLOAT DATA TYPE:
Float data type is used to store numeric value with decimal places. A floating data type always
reserved 4 bytes with the range of 0 to 2.4e
SYNTEX: float a=10.2;
7 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Features of c
Features of cFeatures of c
Features of c
 
C notes
C notesC notes
C notes
 
C LANGUAGE NOTES
C LANGUAGE NOTESC LANGUAGE NOTES
C LANGUAGE NOTES
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
 
C notes for exam preparation
C notes for exam preparationC notes for exam preparation
C notes for exam preparation
 
C programming language
C programming languageC programming language
C programming language
 
SULTHAN's - C Programming Language notes
SULTHAN's - C Programming Language notesSULTHAN's - C Programming Language notes
SULTHAN's - C Programming Language notes
 
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
C notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit orderC notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit order
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
 
Programming in C- Introduction
Programming in C- IntroductionProgramming in C- Introduction
Programming in C- Introduction
 
C languaGE UNIT-1
C languaGE UNIT-1C languaGE UNIT-1
C languaGE UNIT-1
 
C_Programming_Notes_ICE
C_Programming_Notes_ICEC_Programming_Notes_ICE
C_Programming_Notes_ICE
 
Unit4
Unit4Unit4
Unit4
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
C basics
C   basicsC   basics
C basics
 
Why C is Called Structured Programming Language
Why C is Called Structured Programming LanguageWhy C is Called Structured Programming Language
Why C is Called Structured Programming Language
 
CProgrammingTutorial
CProgrammingTutorialCProgrammingTutorial
CProgrammingTutorial
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
C language
C languageC language
C language
 
C PROGRAMMING
C PROGRAMMINGC PROGRAMMING
C PROGRAMMING
 
Chapter3
Chapter3Chapter3
Chapter3
 

Destacado

Dir based imp_5
Dir based imp_5Dir based imp_5
Dir based imp_5Yasir Khan
 
Information System Architecture and Audit Control Lecture 2
Information System Architecture and Audit Control Lecture 2Information System Architecture and Audit Control Lecture 2
Information System Architecture and Audit Control Lecture 2Yasir Khan
 
Information system and control audit – lecture i
Information system and control audit – lecture iInformation system and control audit – lecture i
Information system and control audit – lecture iKartik T. Vayeda & Co.
 
Information System Architecture and Audit Control Lecture 1
Information System Architecture and Audit Control Lecture 1Information System Architecture and Audit Control Lecture 1
Information System Architecture and Audit Control Lecture 1Yasir Khan
 
Information System Audit - UNIKOM Seminar (Nov 2015)
Information System Audit - UNIKOM Seminar (Nov 2015)Information System Audit - UNIKOM Seminar (Nov 2015)
Information System Audit - UNIKOM Seminar (Nov 2015)Basuki Rahmad
 
Control and audit of information System (hendri eka saputra)
Control and audit of information System (hendri eka saputra)Control and audit of information System (hendri eka saputra)
Control and audit of information System (hendri eka saputra)Hendri Eka Saputra
 
Ms access Database
Ms access DatabaseMs access Database
Ms access DatabaseYasir Khan
 
Information System audit
Information System auditInformation System audit
Information System auditPratapchandra
 
Flynns classification
Flynns classificationFlynns classification
Flynns classificationYasir Khan
 

Destacado (12)

Techno Mind
Techno MindTechno Mind
Techno Mind
 
Hpc 1
Hpc 1Hpc 1
Hpc 1
 
Dir based imp_5
Dir based imp_5Dir based imp_5
Dir based imp_5
 
Information System Architecture and Audit Control Lecture 2
Information System Architecture and Audit Control Lecture 2Information System Architecture and Audit Control Lecture 2
Information System Architecture and Audit Control Lecture 2
 
Information system and control audit – lecture i
Information system and control audit – lecture iInformation system and control audit – lecture i
Information system and control audit – lecture i
 
Information System Architecture and Audit Control Lecture 1
Information System Architecture and Audit Control Lecture 1Information System Architecture and Audit Control Lecture 1
Information System Architecture and Audit Control Lecture 1
 
Information System Audit - UNIKOM Seminar (Nov 2015)
Information System Audit - UNIKOM Seminar (Nov 2015)Information System Audit - UNIKOM Seminar (Nov 2015)
Information System Audit - UNIKOM Seminar (Nov 2015)
 
Control and audit of information System (hendri eka saputra)
Control and audit of information System (hendri eka saputra)Control and audit of information System (hendri eka saputra)
Control and audit of information System (hendri eka saputra)
 
Ms access Database
Ms access DatabaseMs access Database
Ms access Database
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Information System audit
Information System auditInformation System audit
Information System audit
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 

Similar a Learn C Programming Fundamentals

Similar a Learn C Programming Fundamentals (20)

over all view programming to computer
over all view programming to computer over all view programming to computer
over all view programming to computer
 
Pc module1
Pc module1Pc module1
Pc module1
 
C tutorials
C tutorialsC tutorials
C tutorials
 
Introduction to c++ ppt 1
Introduction to c++ ppt 1Introduction to c++ ppt 1
Introduction to c++ ppt 1
 
A Crash Course in C Part-1
A Crash Course in C Part-1A Crash Course in C Part-1
A Crash Course in C Part-1
 
C programming presentation(final)
C programming presentation(final)C programming presentation(final)
C programming presentation(final)
 
1. introduction to computer
1. introduction to computer1. introduction to computer
1. introduction to computer
 
67404923-C-Programming-Tutorials-Doc.pdf
67404923-C-Programming-Tutorials-Doc.pdf67404923-C-Programming-Tutorials-Doc.pdf
67404923-C-Programming-Tutorials-Doc.pdf
 
C
CC
C
 
Basic c
Basic cBasic c
Basic c
 
C++ programming language basic to advance level
C++ programming language basic to advance levelC++ programming language basic to advance level
C++ programming language basic to advance level
 
Unit 2 introduction to c programming
Unit 2   introduction to c programmingUnit 2   introduction to c programming
Unit 2 introduction to c programming
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
 
Introduction to c++ ppt
Introduction to c++ pptIntroduction to c++ ppt
Introduction to c++ ppt
 
C prog ppt
C prog pptC prog ppt
C prog ppt
 
Unit 2 ppt
Unit 2 pptUnit 2 ppt
Unit 2 ppt
 
C programming language Reference Note
C programming language Reference NoteC programming language Reference Note
C programming language Reference Note
 
C programming
C programmingC programming
C programming
 
Reduce course notes class xii
Reduce course notes class xiiReduce course notes class xii
Reduce course notes class xii
 
C programming
C programmingC programming
C programming
 

Más de Yasir Khan (20)

Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lec#1
Lec#1Lec#1
Lec#1
 
Ch10 (1)
Ch10 (1)Ch10 (1)
Ch10 (1)
 
Ch09
Ch09Ch09
Ch09
 
Ch05
Ch05Ch05
Ch05
 
Snooping protocols 3
Snooping protocols 3Snooping protocols 3
Snooping protocols 3
 
Snooping 2
Snooping 2Snooping 2
Snooping 2
 
Introduction 1
Introduction 1Introduction 1
Introduction 1
 
Hpc sys
Hpc sysHpc sys
Hpc sys
 
Hpc 6 7
Hpc 6 7Hpc 6 7
Hpc 6 7
 
Hpc 4 5
Hpc 4 5Hpc 4 5
Hpc 4 5
 
Hpc 3
Hpc 3Hpc 3
Hpc 3
 
Hpc 2
Hpc 2Hpc 2
Hpc 2
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Uncertainity
Uncertainity Uncertainity
Uncertainity
 
Logic
LogicLogic
Logic
 
M6 game
M6 gameM6 game
M6 game
 
M4 heuristics
M4 heuristicsM4 heuristics
M4 heuristics
 

Último

DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfChristalin Nelson
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 

Último (20)

Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 

Learn C Programming Fundamentals

  • 1. 1 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014 C C is a programminglanguage developed at AT & T’s Bell Laboratories of USA in 1972 by Dennis Ritchie. C is a computerProgramminglanguage that means that you can use c to create lists of instruction for a computerto followcisone of thousandsof programminglanguages currently in use c has been around for several decades and has won widespread acceptation because it gives programmers maximum control and efficiency.Cisan easyto learnitisa bitmore cryptic initsstyle than some other languages, but get beyond that fairly quickly. FEATURES OF C LANGUAGE:  C is a case sensitive language  C is a collection of libraries  Libraries is a collection of Functions  Function is a collection of Statements  Statements is a collection of Collectors  C language can Support IDE “Integrated Development Envorment”  C language can support only Compiler Translators  A C file Must Be .cpp (C plus plus) C Keywords Keywords are the words whose meaning has already been explained to the C compiler (or in a broad sense to the computer). The keywords cannot be used as variable names because if we do so we are trying to assign a new meaning to the keyword, which is not allowed by the computer. Some C compilers allow you to construct variable names that exactly resemble the keywords. However, it would be safer not to mix up the variable names and the keywords. The keywords are also called ‘Reserved words’. IDE: IDE abbreviate as “Integrated development envorment”. It is a platform that we can type any c program, compile, execution and display of results. IDE is a programming envorment that typically consistof code editor, acompiler,adebugand graphical user interface (GUI). The IDE is May stay alone application or may be included as a part of computer program. IDE is and interface between user and computer that perform simultaneously. COMMON EXAMPLE: GW-Basic, Visual Basic, C Language etc
  • 2. 2 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014 Q: Define Header Files? HEADER FILES: DEFINATION: Headerfile isa collectionof functionthatfoundindifferentlibraries.A headerfileisalwaysdefine inthe top of program and found in include directory. The header files are always assigned with sign of #. An every header file contains different functions like <math.h> library is containing of different mathematical functions. Q: How Many Files to generate a compiler after the execution of C Program? C FILES: There are four files to generate a compiler automatically 1. .Cpp 2. .Bak 3. .Obj 4. .Exe .CPP The .Cpp isa source file thatbasedona c programmingcode withoutthisfile we cannot maintain other files the extension of .cpp is recognize as c plus plus code .BAK The backup file isautomatically generated file that provide backup of source code suppose the source file isdeletedwe canuse backupfile asa source code butit necessarytorename the extensionof file as .cpp .OBJ The .obj is objectorientedfile thatcontain amachine code and store errors, values, and result oriented machine code without the object file the source program cannot entertain. .EXE (Executable File) The Executable file isrunwithoutanysupportof program sometimes it called compiled file so the .exe file is a powerful extension that execute computer programs and there is no need to install any computer program
  • 3. 3 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014 Q: Define Gotoxy Statements? Goto xy statements: The goto xystatementisusedto set the cursor on the screen and display text on the particular column and row/line. There are 256 columns ( 0 to 255) and 25 rows (0 to 24). SYNTEX: goto xy (C,R); EXAMPLE: Gotoxy(10,10); Printf(“ YASIR “); Q: Define Goto Statements? GOTO STATEMENT: The goto statement is a branching statement that we can move the cursor in the particular line sometimes we can say it’s a conditional statement. SYNTEX: goto c; EXAMPLE: Char a=’B’; c: printf(“ HI”); getche(); goto c; BREAK STATEMENT: The break statement is used to terminate the nearest statement or do, for , switch-case and while statement. The break statement is also perform in loops it mean we can terminate in the mid of loop. SYNTEX: break; EXAMPLE: Int a; Printf(“1.Books Name”); Printf(“ 2. Exit “); Switch(no) { Case 1; Printf(“ C language “); Break; Default: Break; Printf(“Wrong Entry”); }
  • 4. 4 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014 Q: Define Return Statements? RETURN STATEMENT: The return statement is used to terminate the execution of function and return to the calling of function. The return function is also used to return the value of calling of function. SYNTEX: return expression If no return statement found in function definition, the control automatically returns to the calling of function.If a returnvalue is not required, declare the function with the data type of void otherwise to return the integer data type. Q: Define Continue Statements? CONTINUE STATEMENT: The continue statement is used to pass the control of next iteration of the nearest do…while, and for and by pass the remaining statements in the do, for, and while statement of the body. SYNTEX: continue; The Continue statement is always perform when we cross of the body of the any loop and moves the cursor or pointer in the next statement. EXAMPLE: void main (void) { clrscr(); int a; for(a=1;a<=10;a++) { if(a==5) continue; printf("n %d",a); }
  • 5. 5 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014 Q: Define Variable And Its Types? VARIABLES: A variable is a name of value that store unique value. A variable is a collection of characters normally in any language a variable can perform very important role that capable to store values. A variable can identify by their names like a,b,c,x,y,z RULES OF VARIABLES:  A Variable must be a character  We cannot define numeric number as a variable  We can assign variables as a character and numeric like A1,A2,A3  We can assign a variable 8 to 12 characters  Variable are not allowed to assign special symbols  Example a=10; b=’c’;  We Cannot allow duplicate values TYPES OF VARIABLES: 1. Constant Variable or String Value 2. Numeric Variable CONSTANT VARIABLES: A constant is a collection of characters and character may be A to Z, a to z.. 0 to 9, & $ The constant variable cannot change during the execution e.g b=’c’; z=55; NUMERIC VARIABLES: The numeric variable is use to store only numeric values e.g c=10(constant numeric value). The variable may be change during the execution of computer program.
  • 6. 6 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014 Q: What Are Data Types? DATA TYPES: Data types are use to store which type of data stored in the variables. Data types are always identifying by their name, data types is a computer memory location that store data. Data types are always define in the beginning of computer program. There are various data types used in c language but major are, INTEGER DATA TYPE: Integer data type is use to store sure numeric value. Integer data type is capable to store - 32768 to 32767 and accommodate 4bytes SYNTEX: int a; CHARACTER DATA TYPE: Character data type is always store string value and occupies 2 bytes and store 0 to 255 at a time SYNTEX: char a[30]; FLOAT DATA TYPE: Float data type is used to store numeric value with decimal places. A floating data type always reserved 4 bytes with the range of 0 to 2.4e SYNTEX: float a=10.2;
  • 7. 7 PreparedBy:Yasir AhmedKhan| email: yasirahmedkha@ymail.com cell:03337015014