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

What's hot (20)

PPTX
Tokens in C++
Mahender Boda
 
PPTX
Pointers in C Programming
Jasleen Kaur (Chandigarh University)
 
PPTX
Oop c++class(final).ppt
Alok Kumar
 
PPT
structure and union
student
 
PPSX
Complete C programming Language Course
Vivek Singh Chandel
 
PPTX
Union in C programming
Kamal Acharya
 
PPTX
Introduction to c programming
Sivant Kolhe
 
PPTX
Friend functions
Megha Singh
 
DOC
C fundamental
Selvam Edwin
 
PPTX
Storage class in c
kash95
 
PPTX
Data Type in C Programming
Qazi Shahzad Ali
 
PPTX
Storage classes in C
Nitesh Bichwani
 
PPTX
Typedef
vaseemkhn
 
PPT
Declaration of variables
Maria Stella Solon
 
PPT
Constructor and Destructor PPT
Shubham Mondal
 
PPTX
Operator overloading
Ramish Suleman
 
PPTX
Dynamic memory allocation
Viji B
 
PPTX
Operator overloading
ramya marichamy
 
PPT
Enumerated data types in C
Arpana shree
 
Tokens in C++
Mahender Boda
 
Pointers in C Programming
Jasleen Kaur (Chandigarh University)
 
Oop c++class(final).ppt
Alok Kumar
 
structure and union
student
 
Complete C programming Language Course
Vivek Singh Chandel
 
Union in C programming
Kamal Acharya
 
Introduction to c programming
Sivant Kolhe
 
Friend functions
Megha Singh
 
C fundamental
Selvam Edwin
 
Storage class in c
kash95
 
Data Type in C Programming
Qazi Shahzad Ali
 
Storage classes in C
Nitesh Bichwani
 
Typedef
vaseemkhn
 
Declaration of variables
Maria Stella Solon
 
Constructor and Destructor PPT
Shubham Mondal
 
Operator overloading
Ramish Suleman
 
Dynamic memory allocation
Viji B
 
Operator overloading
ramya marichamy
 
Enumerated data types in C
Arpana shree
 

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

PPTX
Basic C Structure and related terms with example
sanjana mun
 
PPTX
Unit-1 (introduction to c language).pptx
saivasu4
 
PPTX
C languaGE UNIT-1
Malikireddy Bramhananda Reddy
 
PPTX
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
PPTX
C language unit-1
Malikireddy Bramhananda Reddy
 
PPTX
STRUCTURED PROGRAMMING (USING C PROGRAMMING).pptx
stevecom2010
 
PDF
Introduction to the c programming language (amazing and easy book for beginners)
mujeeb memon
 
PDF
Rr
VK AG
 
PDF
C pdf
amit9765
 
PDF
Learning the C Language
nTier Custom Solutions
 
PPTX
C session 1.pptx
NIRMALRAJSCSE20
 
PPTX
C programming
Rohan Gajre
 
PPT
Introduction To Programming subject1.ppt
uf88605
 
PDF
Prog1-L1.pdf
valerie5142000
 
PPT
490450755-Chapter-2.ppt
ManiMala75
 
PPT
490450755-Chapter-2.ppt
ManiMala75
 
PPTX
Presentation c++
JosephAlex21
 
PPTX
Computer Hardware Technology PowerPoint Templates (1).pptx
pakistannewsworldnew
 
PPTX
Intro in understanding to C programming .pptx
abadinasargie
 
Basic C Structure and related terms with example
sanjana mun
 
Unit-1 (introduction to c language).pptx
saivasu4
 
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
STRUCTURED PROGRAMMING (USING C PROGRAMMING).pptx
stevecom2010
 
Introduction to the c programming language (amazing and easy book for beginners)
mujeeb memon
 
Rr
VK AG
 
C pdf
amit9765
 
Learning the C Language
nTier Custom Solutions
 
C session 1.pptx
NIRMALRAJSCSE20
 
C programming
Rohan Gajre
 
Introduction To Programming subject1.ppt
uf88605
 
Prog1-L1.pdf
valerie5142000
 
490450755-Chapter-2.ppt
ManiMala75
 
490450755-Chapter-2.ppt
ManiMala75
 
Presentation c++
JosephAlex21
 
Computer Hardware Technology PowerPoint Templates (1).pptx
pakistannewsworldnew
 
Intro in understanding to C programming .pptx
abadinasargie
 
Ad

Recently uploaded (20)

PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Ad

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