SlideShare a Scribd company logo
Basic Structure of C Language
and Related Term
By:Prof.Muhammad Waseem
Importance of Programming & Problem
Solving
• Here are some of the things that learning coding can empower someone to do-
• ToMake someone’s Own Website.
• Become a Career Coder.
• Start a Business
• Some of the kinds of businesses you can start include…
selling software
selling mobile apps
e-commerce
selling your coding time.
ToUnderstand How Computers Work and so more.
HEADER FILE
• A header file is a file with extension .h which contains C function declarations .
• There are two types of header files :
Files that the programmer writes and
Files that comes with a compiler.
• For Example:
stdio.h header file contains standard Input and Output functions.
string.h header file contains string handling functions.
Main function
• main() function is the entry point of any C program;
• It is the point at which execution of program is started;
• When a C program is executed, the execution control goes directly to the
main() function.
• Every C program have a main() function.
• It’s a compulsory for c program.
Simple example of a
program
Program Structure
• A sample of c program-
#include<stdio.h>
int main()
{
-----Statements----
// comments after double slash
}
Basic Structure of C Language  and Related Term
Comments in c
• A comment is a programmer-readable explanation;
• They are added with the purpose of making the source code easier for humans to understand,
and are generally ignored by compilers and interpreters.
• Example-
• Single line comment-
//(double slash);
Multiline comment-
/*---------
------*/
• This can span over to multiple line;
Keywords in C Language
variables
• Variables are data that will keep on changing. A variable is nothing but a name given to a
storage area that our programs can manipulate.
• Declaration
<<Data type>> <<variable name>>;
int a;
• Definition
<<varname>>=<<value>>;
a=10;
• Usage
a=a+1; //increments the value of a by 1
Variable names-Rules
Constants
• Constants refer to fixed values that the program may not alter during its
execution. These fixed values are also called literals.
• Given below is the form to use #define preprocessor to define a
• const
• #define identifier value
Thanks!

More Related Content

PPTX
Functions in c language
PPT
C by balaguruswami - e.balagurusamy
PPT
C the basic concepts
PPT
PPTX
C if else
PPTX
Tokens in C++
PPTX
Programming in C Presentation upto FILE
PPTX
Presentation on C Switch Case Statements
Functions in c language
C by balaguruswami - e.balagurusamy
C the basic concepts
C if else
Tokens in C++
Programming in C Presentation upto FILE
Presentation on C Switch Case Statements

What's hot (20)

PPTX
PPT
Variables in C Programming
PPTX
C Tokens
DOCX
Basic structure of c programming
PPT
Constants in C Programming
PPTX
Header files of c++ unit 3 -topic 3
PPTX
C tokens
PPTX
Function in C program
PPT
C program
PPTX
Control statements in c
PPTX
Conditional Statement in C Language
PPT
Strings Functions in C Programming
PPTX
C decision making and looping.
PPT
Function overloading(c++)
PDF
Operators in c programming
PPTX
Control structures in java
PPTX
Delegates and events in C#
PPTX
What is keyword in c programming
PPTX
Data types
PDF
Nested Queries Lecture
Variables in C Programming
C Tokens
Basic structure of c programming
Constants in C Programming
Header files of c++ unit 3 -topic 3
C tokens
Function in C program
C program
Control statements in c
Conditional Statement in C Language
Strings Functions in C Programming
C decision making and looping.
Function overloading(c++)
Operators in c programming
Control structures in java
Delegates and events in C#
What is keyword in c programming
Data types
Nested Queries Lecture
Ad

Similar to Basic Structure of C Language and Related Term (20)

PPTX
Basic C Structure and related terms with example
PPTX
Unit-1 (introduction to c language).pptx
PPTX
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
PPTX
PPTX
PPTX
STRUCTURED PROGRAMMING (USING C PROGRAMMING).pptx
PDF
Rr
PDF
C pdf
PDF
Introduction to the c programming language (amazing and easy book for beginners)
PDF
Learning the C Language
PPTX
C session 1.pptx
PPTX
C programming
PPT
Introduction To Programming subject1.ppt
PDF
Prog1-L1.pdf
PPT
490450755-Chapter-2.ppt
PPT
490450755-Chapter-2.ppt
PPTX
Presentation c++
PPTX
Computer Hardware Technology PowerPoint Templates (1).pptx
PPTX
Intro in understanding to C programming .pptx
Basic C Structure and related terms with example
Unit-1 (introduction to c language).pptx
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
STRUCTURED PROGRAMMING (USING C PROGRAMMING).pptx
Rr
C pdf
Introduction to the c programming language (amazing and easy book for beginners)
Learning the C Language
C session 1.pptx
C programming
Introduction To Programming subject1.ppt
Prog1-L1.pdf
490450755-Chapter-2.ppt
490450755-Chapter-2.ppt
Presentation c++
Computer Hardware Technology PowerPoint Templates (1).pptx
Intro in understanding to C programming .pptx
Ad

Recently uploaded (20)

PPTX
Transform Your Business with a Software ERP System
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
top salesforce developer skills in 2025.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPT
Introduction Database Management System for Course Database
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
assetexplorer- product-overview - presentation
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Nekopoi APK 2025 free lastest update
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
medical staffing services at VALiNTRY
Transform Your Business with a Software ERP System
Odoo Companies in India – Driving Business Transformation.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Which alternative to Crystal Reports is best for small or large businesses.pdf
ai tools demonstartion for schools and inter college
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
top salesforce developer skills in 2025.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
Introduction Database Management System for Course Database
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Upgrade and Innovation Strategies for SAP ERP Customers
Computer Software and OS of computer science of grade 11.pptx
Designing Intelligence for the Shop Floor.pdf
assetexplorer- product-overview - presentation
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Nekopoi APK 2025 free lastest update
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Navsoft: AI-Powered Business Solutions & Custom Software Development
medical staffing services at VALiNTRY

Basic Structure of C Language and Related Term

  • 1. Basic Structure of C Language and Related Term By:Prof.Muhammad Waseem
  • 2. Importance of Programming & Problem Solving • Here are some of the things that learning coding can empower someone to do- • ToMake someone’s Own Website. • Become a Career Coder. • Start a Business • Some of the kinds of businesses you can start include… selling software selling mobile apps e-commerce selling your coding time. ToUnderstand How Computers Work and so more.
  • 3. HEADER FILE • A header file is a file with extension .h which contains C function declarations . • There are two types of header files : Files that the programmer writes and Files that comes with a compiler. • For Example: stdio.h header file contains standard Input and Output functions. string.h header file contains string handling functions.
  • 4. Main function • main() function is the entry point of any C program; • It is the point at which execution of program is started; • When a C program is executed, the execution control goes directly to the main() function. • Every C program have a main() function. • It’s a compulsory for c program.
  • 5. Simple example of a program
  • 6. Program Structure • A sample of c program- #include<stdio.h> int main() { -----Statements---- // comments after double slash }
  • 8. Comments in c • A comment is a programmer-readable explanation; • They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters. • Example- • Single line comment- //(double slash); Multiline comment- /*--------- ------*/ • This can span over to multiple line;
  • 9. Keywords in C Language
  • 10. variables • Variables are data that will keep on changing. A variable is nothing but a name given to a storage area that our programs can manipulate. • Declaration <<Data type>> <<variable name>>; int a; • Definition <<varname>>=<<value>>; a=10; • Usage a=a+1; //increments the value of a by 1
  • 12. Constants • Constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. • Given below is the form to use #define preprocessor to define a • const • #define identifier value