SlideShare a Scribd company logo
1 of 21
ARVIN santos buendia
OBJECTIVES ,[object Object],[object Object],[object Object]
VARIABLE DECLARATION OF TURBO-C SYNTAX <data type>  <variable name> char   g ; int   x ,  y ,  z ; float   f=5.67 ; int   x=10 ; char   name[10] ;
< DATA TYPES > ,[object Object],[object Object],[object Object],[object Object],[object Object]
< DATA TYPES > ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
< DATA TYPES > ,[object Object],[object Object],[object Object]
< DATA TYPES > ,[object Object],[object Object],[object Object]
< DATA TYPES > ,[object Object],[object Object],[object Object]
< DATA TYPES > ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
< VARIABLE NAME > arvin#030709 buendia_arvin : ] superman superman arvin25 [email_address]
< VARIABLE NAME > It must start with a letter or an underscore, with subsequent characters being letters, numbers, or the underscore _arvin superman 05buendia buendia05 %arvin *superman
< VARIABLE NAME > A Turbo C Variable may consist of 63 characters, but only the first 32 are significant do_you_know_that_this_is_one_long_variable_name_but_still_valid do_you_know_that_this_is_one_long_variable_name_but_still_considered_as_invalid tamahome miyaka_mikaela rain_mikayla
< VARIABLE NAME > A variable is case sensitive, that is, uppercase variables are treated differently   Variable “ SUM ” is different from variable “ sum ” Variable “ NetPay ” is different from variable “ NETpay ”
< VARIABLE NAME > A variable cannot be the same as a Turbo C keyword. float elwin main ping dota printf
< VARIABLE NAME > A variable cannot be the same as a Turbo C keyword. float elwin main ping dota printf
< VARIABLE NAME > Variable names must be unique and descriptive   area sheverlou cute surname product churva
<  DECLARING VARIABLES  > #include<stdio.h> main( ) { int peso;   printf(“Variable Value :  %i ”,  peso ); } _ Variable Value :  _ 0 _ 0 0
<  DECLARING VARIABLES  > #include<stdio.h> main( ) { char let;   printf(“Variable Value :  %c ”,  let ); } _ Variable Value :  _ ả _ ả ả
<  DECLARING VARIABLES  > #include<stdio.h> main( ) { int x,y; printf(“Variable Values :  %i  %d ”,  x ,  y ); } _ Variable Value :  _ 0 _ 0 VARIABLE 1 VARIABLE 2 0 0 0 0 _
<  DECLARING VARIABLES  > #include<stdio.h> main( ) { float gross=5.84365; int age=3;  printf(“Variable Values :  %i  %.3f ”,  age ,  gross ); } _ Variable Value :  _ 3 _ 5.84365 VARIABLE 1 VARIABLE 2 3 3 5.84365 5.844 _
<  DECLARING VARIABLES  > #include<stdio.h> main( ) { int a=5, b=6, c=7, para;   para = a + b + c; printf(“PARAMETER :  %i ”,  para ); } _ PARAMETER _ 18 _ 5 6 7 0 5 6 7 18 18

More Related Content

What's hot

9. pointer, pointer & function
9. pointer, pointer & function9. pointer, pointer & function
9. pointer, pointer & function
웅식 전
 
Chapter 3 - Variable Memory Concept
Chapter 3 - Variable Memory ConceptChapter 3 - Variable Memory Concept
Chapter 3 - Variable Memory Concept
Deepak Singh
 
Input output functions
Input output functionsInput output functions
Input output functions
hyderali123
 

What's hot (20)

SQL MCQ
SQL MCQSQL MCQ
SQL MCQ
 
9. pointer, pointer & function
9. pointer, pointer & function9. pointer, pointer & function
9. pointer, pointer & function
 
C Programming Language Part 9
C Programming Language Part 9C Programming Language Part 9
C Programming Language Part 9
 
C Programming Language Part 8
C Programming Language Part 8C Programming Language Part 8
C Programming Language Part 8
 
CHAPTER 2
CHAPTER 2CHAPTER 2
CHAPTER 2
 
PL SQL Quiz | PL SQL Examples
PL SQL Quiz |  PL SQL ExamplesPL SQL Quiz |  PL SQL Examples
PL SQL Quiz | PL SQL Examples
 
scanf function in c, variations in conversion specifier
scanf function in c, variations in conversion specifierscanf function in c, variations in conversion specifier
scanf function in c, variations in conversion specifier
 
Chapter 3 - Variable Memory Concept
Chapter 3 - Variable Memory ConceptChapter 3 - Variable Memory Concept
Chapter 3 - Variable Memory Concept
 
C programming pointer
C  programming pointerC  programming pointer
C programming pointer
 
Input output functions
Input output functionsInput output functions
Input output functions
 
C language (more)
C language (more)C language (more)
C language (more)
 
Data Input and Output
Data Input and OutputData Input and Output
Data Input and Output
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHON
 
Functions and pointers_unit_4
Functions and pointers_unit_4Functions and pointers_unit_4
Functions and pointers_unit_4
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
 
Cbasic
CbasicCbasic
Cbasic
 
Decision Making and Branching in C
Decision Making and Branching  in CDecision Making and Branching  in C
Decision Making and Branching in C
 
Decision making and branching
Decision making and branchingDecision making and branching
Decision making and branching
 
C if else
C if elseC if else
C if else
 
2. operator
2. operator2. operator
2. operator
 

Viewers also liked (8)

Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 
Eestlased 2012 londoni olßmpia mängudel3
Eestlased 2012 londoni olßmpia mängudel3Eestlased 2012 londoni olßmpia mängudel3
Eestlased 2012 londoni olßmpia mängudel3
 
Back to school photo slider
Back to school photo sliderBack to school photo slider
Back to school photo slider
 
Eestlased 2012 londoni olßmpia mängudel3
Eestlased 2012 londoni olßmpia mängudel3Eestlased 2012 londoni olßmpia mängudel3
Eestlased 2012 londoni olßmpia mängudel3
 
Renaissannce politicss, lit, and art-1
Renaissannce politicss, lit, and art-1Renaissannce politicss, lit, and art-1
Renaissannce politicss, lit, and art-1
 
Key answer to longtest (3 rd quarter)
Key answer to longtest (3 rd quarter)Key answer to longtest (3 rd quarter)
Key answer to longtest (3 rd quarter)
 
49045118 project-of-coca-cola-110406035123-phpapp01(4)
49045118 project-of-coca-cola-110406035123-phpapp01(4)49045118 project-of-coca-cola-110406035123-phpapp01(4)
49045118 project-of-coca-cola-110406035123-phpapp01(4)
 
Industrial revolution
Industrial revolutionIndustrial revolution
Industrial revolution
 

Similar to Variable declaration

C++ programming
C++ programmingC++ programming
C++ programming
Anshul Mahale
 
Presentation.mehr
Presentation.mehrPresentation.mehr
Presentation.mehr
imhammadali
 
Cplusplus
CplusplusCplusplus
Cplusplus
dancey
 
presentation_pointers_1444076066_140676 (1).ppt
presentation_pointers_1444076066_140676 (1).pptpresentation_pointers_1444076066_140676 (1).ppt
presentation_pointers_1444076066_140676 (1).ppt
georgejustymirobi1
 
Lecture 3 c++
Lecture 3 c++Lecture 3 c++
Lecture 3 c++
emailharmeet
 

Similar to Variable declaration (20)

C++ programming
C++ programmingC++ programming
C++ programming
 
C PROGRAMMING BASICS- COMPUTER PROGRAMMING UNIT II
C PROGRAMMING BASICS- COMPUTER PROGRAMMING UNIT IIC PROGRAMMING BASICS- COMPUTER PROGRAMMING UNIT II
C PROGRAMMING BASICS- COMPUTER PROGRAMMING UNIT II
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Presentation.mehr
Presentation.mehrPresentation.mehr
Presentation.mehr
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Cplusplus
CplusplusCplusplus
Cplusplus
 
2. introduction of a c program
2. introduction of a c program2. introduction of a c program
2. introduction of a c program
 
C language concept with code apna college.pdf
C language concept with code apna college.pdfC language concept with code apna college.pdf
C language concept with code apna college.pdf
 
presentation_pointers_1444076066_140676 (1).ppt
presentation_pointers_1444076066_140676 (1).pptpresentation_pointers_1444076066_140676 (1).ppt
presentation_pointers_1444076066_140676 (1).ppt
 
c program.ppt
c program.pptc program.ppt
c program.ppt
 
Vcs14
Vcs14Vcs14
Vcs14
 
C LANGUAGE.pptx
C LANGUAGE.pptxC LANGUAGE.pptx
C LANGUAGE.pptx
 
C LANGUAGE.pptx
C LANGUAGE.pptxC LANGUAGE.pptx
C LANGUAGE.pptx
 
Lecture 3 c++
Lecture 3 c++Lecture 3 c++
Lecture 3 c++
 
Cs211 module 1_2015
Cs211 module 1_2015Cs211 module 1_2015
Cs211 module 1_2015
 
Cs211 module 1_2015
Cs211 module 1_2015Cs211 module 1_2015
Cs211 module 1_2015
 
PHP Built-in String Validation Functions
PHP Built-in String Validation FunctionsPHP Built-in String Validation Functions
PHP Built-in String Validation Functions
 
Pengaturcaraan asas
Pengaturcaraan asasPengaturcaraan asas
Pengaturcaraan asas
 
PSPC--UNIT-2.pdf
PSPC--UNIT-2.pdfPSPC--UNIT-2.pdf
PSPC--UNIT-2.pdf
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 

More from Hanielle Cheng

4th quarter periodic test review in math3
4th quarter periodic test review in math34th quarter periodic test review in math3
4th quarter periodic test review in math3
Hanielle Cheng
 
4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry
Hanielle Cheng
 
World 4 th quarter outline
World 4 th quarter outlineWorld 4 th quarter outline
World 4 th quarter outline
Hanielle Cheng
 
The reformation part i
The reformation part iThe reformation part i
The reformation part i
Hanielle Cheng
 
The industrial revolution 2
The industrial revolution 2The industrial revolution 2
The industrial revolution 2
Hanielle Cheng
 
Scientific revolution
Scientific revolutionScientific revolution
Scientific revolution
Hanielle Cheng
 
Scientific revolution 2
Scientific revolution 2Scientific revolution 2
Scientific revolution 2
Hanielle Cheng
 
Exploration and colonization
Exploration and colonizationExploration and colonization
Exploration and colonization
Hanielle Cheng
 
Effects of exploration
Effects of explorationEffects of exploration
Effects of exploration
Hanielle Cheng
 
Effects of colonization
Effects of colonizationEffects of colonization
Effects of colonization
Hanielle Cheng
 
Early renaissance 3
Early renaissance 3Early renaissance 3
Early renaissance 3
Hanielle Cheng
 
Counter reformation
Counter reformationCounter reformation
Counter reformation
Hanielle Cheng
 
Columbian exchange
Columbian exchangeColumbian exchange
Columbian exchange
Hanielle Cheng
 
The high renaissance
The high renaissanceThe high renaissance
The high renaissance
Hanielle Cheng
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
Hanielle Cheng
 

More from Hanielle Cheng (20)

4th quarter periodic test review in math3
4th quarter periodic test review in math34th quarter periodic test review in math3
4th quarter periodic test review in math3
 
4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry
 
Quiz no.5
Quiz no.5Quiz no.5
Quiz no.5
 
World 4 th quarter outline
World 4 th quarter outlineWorld 4 th quarter outline
World 4 th quarter outline
 
The renaissance
The renaissanceThe renaissance
The renaissance
 
The reformation part i
The reformation part iThe reformation part i
The reformation part i
 
The industrial revolution 2
The industrial revolution 2The industrial revolution 2
The industrial revolution 2
 
Scientific revolution
Scientific revolutionScientific revolution
Scientific revolution
 
Scientific revolution 2
Scientific revolution 2Scientific revolution 2
Scientific revolution 2
 
Exploration and colonization
Exploration and colonizationExploration and colonization
Exploration and colonization
 
Effects of exploration
Effects of explorationEffects of exploration
Effects of exploration
 
Effects of colonization
Effects of colonizationEffects of colonization
Effects of colonization
 
Early renaissance 3
Early renaissance 3Early renaissance 3
Early renaissance 3
 
Counter reformation
Counter reformationCounter reformation
Counter reformation
 
Age of reason
Age of reasonAge of reason
Age of reason
 
Columbian exchange
Columbian exchangeColumbian exchange
Columbian exchange
 
The high renaissance
The high renaissanceThe high renaissance
The high renaissance
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 
Operators
OperatorsOperators
Operators
 
Operators
OperatorsOperators
Operators
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 

Variable declaration

  • 2.
  • 3. VARIABLE DECLARATION OF TURBO-C SYNTAX <data type> <variable name> char g ; int x , y , z ; float f=5.67 ; int x=10 ; char name[10] ;
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. < VARIABLE NAME > arvin#030709 buendia_arvin : ] superman superman arvin25 [email_address]
  • 11. < VARIABLE NAME > It must start with a letter or an underscore, with subsequent characters being letters, numbers, or the underscore _arvin superman 05buendia buendia05 %arvin *superman
  • 12. < VARIABLE NAME > A Turbo C Variable may consist of 63 characters, but only the first 32 are significant do_you_know_that_this_is_one_long_variable_name_but_still_valid do_you_know_that_this_is_one_long_variable_name_but_still_considered_as_invalid tamahome miyaka_mikaela rain_mikayla
  • 13. < VARIABLE NAME > A variable is case sensitive, that is, uppercase variables are treated differently   Variable “ SUM ” is different from variable “ sum ” Variable “ NetPay ” is different from variable “ NETpay ”
  • 14. < VARIABLE NAME > A variable cannot be the same as a Turbo C keyword. float elwin main ping dota printf
  • 15. < VARIABLE NAME > A variable cannot be the same as a Turbo C keyword. float elwin main ping dota printf
  • 16. < VARIABLE NAME > Variable names must be unique and descriptive   area sheverlou cute surname product churva
  • 17. < DECLARING VARIABLES > #include<stdio.h> main( ) { int peso;   printf(“Variable Value : %i ”, peso ); } _ Variable Value : _ 0 _ 0 0
  • 18. < DECLARING VARIABLES > #include<stdio.h> main( ) { char let;   printf(“Variable Value : %c ”, let ); } _ Variable Value : _ ả _ ả ả
  • 19. < DECLARING VARIABLES > #include<stdio.h> main( ) { int x,y; printf(“Variable Values : %i %d ”, x , y ); } _ Variable Value : _ 0 _ 0 VARIABLE 1 VARIABLE 2 0 0 0 0 _
  • 20. < DECLARING VARIABLES > #include<stdio.h> main( ) { float gross=5.84365; int age=3; printf(“Variable Values : %i %.3f ”, age , gross ); } _ Variable Value : _ 3 _ 5.84365 VARIABLE 1 VARIABLE 2 3 3 5.84365 5.844 _
  • 21. < DECLARING VARIABLES > #include<stdio.h> main( ) { int a=5, b=6, c=7, para;   para = a + b + c; printf(“PARAMETER : %i ”, para ); } _ PARAMETER _ 18 _ 5 6 7 0 5 6 7 18 18