SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiSowmyaJyothi3
 
pointer, structure ,union and intro to file handling
pointer, structure ,union and intro to file handlingpointer, structure ,union and intro to file handling
pointer, structure ,union and intro to file handlingRai University
 
Unit ii chapter 2 Decision making and Branching in C
Unit ii chapter 2 Decision making and Branching in CUnit ii chapter 2 Decision making and Branching in C
Unit ii chapter 2 Decision making and Branching in CSowmya Jyothi
 
Constant, variables, data types
Constant, variables, data typesConstant, variables, data types
Constant, variables, data typesPratik Devmurari
 
Numeric Data Types & Strings
Numeric Data Types & StringsNumeric Data Types & Strings
Numeric Data Types & StringsAbhinav Porwal
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C ProgrammingQazi Shahzad Ali
 
Constants and variables in c programming
Constants and variables in c programmingConstants and variables in c programming
Constants and variables in c programmingChitrank Dixit
 
constants, variables and datatypes in C
constants, variables and datatypes in Cconstants, variables and datatypes in C
constants, variables and datatypes in CSahithi Naraparaju
 

La actualidad más candente (19)

Character set of c
Character set of cCharacter set of c
Character set of c
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya Jyothi
 
pointer, structure ,union and intro to file handling
pointer, structure ,union and intro to file handlingpointer, structure ,union and intro to file handling
pointer, structure ,union and intro to file handling
 
Assignment7
Assignment7Assignment7
Assignment7
 
C –imp points
C –imp pointsC –imp points
C –imp points
 
Unit ii chapter 2 Decision making and Branching in C
Unit ii chapter 2 Decision making and Branching in CUnit ii chapter 2 Decision making and Branching in C
Unit ii chapter 2 Decision making and Branching in C
 
Constant, variables, data types
Constant, variables, data typesConstant, variables, data types
Constant, variables, data types
 
Numeric Data Types & Strings
Numeric Data Types & StringsNumeric Data Types & Strings
Numeric Data Types & Strings
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Data types
Data typesData types
Data types
 
Assignment10
Assignment10Assignment10
Assignment10
 
CHAPTER 2
CHAPTER 2CHAPTER 2
CHAPTER 2
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
 
C Token’s
C Token’sC Token’s
C Token’s
 
C language basics
C language basicsC language basics
C language basics
 
Constants and variables in c programming
Constants and variables in c programmingConstants and variables in c programming
Constants and variables in c programming
 
Assignment6
Assignment6Assignment6
Assignment6
 
Assignment12
Assignment12Assignment12
Assignment12
 
constants, variables and datatypes in C
constants, variables and datatypes in Cconstants, variables and datatypes in C
constants, variables and datatypes in C
 

Destacado

The reformation part i
The reformation part iThe reformation part i
The reformation part iHanielle Cheng
 
World 4 th quarter outline
World 4 th quarter outlineWorld 4 th quarter outline
World 4 th quarter outlineHanielle 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 math3Hanielle 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 trigonometryHanielle Cheng
 
TKP Java Notes for Teaching Kids Programming
TKP Java Notes for Teaching Kids ProgrammingTKP Java Notes for Teaching Kids Programming
TKP Java Notes for Teaching Kids ProgrammingLynn Langit
 
Java notes 1 - operators control-flow
Java notes   1 - operators control-flowJava notes   1 - operators control-flow
Java notes 1 - operators control-flowMohammed Sikander
 
Core java notes with examples
Core java notes with examplesCore java notes with examples
Core java notes with examplesbindur87
 
Java Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPRECJava Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPRECSreedhar Chowdam
 
java Basic Programming Needs
java Basic Programming Needsjava Basic Programming Needs
java Basic Programming NeedsRaja Sekhar
 
Powerpoint for data communication
Powerpoint for data communication Powerpoint for data communication
Powerpoint for data communication samanthaanderson21
 

Destacado (20)

Lec2+lec3
Lec2+lec3Lec2+lec3
Lec2+lec3
 
Quiz no.5
Quiz no.5Quiz no.5
Quiz no.5
 
The reformation part i
The reformation part iThe reformation part i
The reformation part i
 
World 4 th quarter outline
World 4 th quarter outlineWorld 4 th quarter outline
World 4 th quarter outline
 
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
 
The renaissance
The renaissanceThe renaissance
The renaissance
 
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
 
TKP Java Notes for Teaching Kids Programming
TKP Java Notes for Teaching Kids ProgrammingTKP Java Notes for Teaching Kids Programming
TKP Java Notes for Teaching Kids Programming
 
Java notes 1 - operators control-flow
Java notes   1 - operators control-flowJava notes   1 - operators control-flow
Java notes 1 - operators control-flow
 
Core java notes with examples
Core java notes with examplesCore java notes with examples
Core java notes with examples
 
Java for beginners
Java for beginnersJava for beginners
Java for beginners
 
Java Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPRECJava Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPREC
 
Java essential notes
Java essential notesJava essential notes
Java essential notes
 
java Basic Programming Needs
java Basic Programming Needsjava Basic Programming Needs
java Basic Programming Needs
 
Java programs
Java programsJava programs
Java programs
 
Java Notes
Java NotesJava Notes
Java Notes
 
Simple Java Programs
Simple Java ProgramsSimple Java Programs
Simple Java Programs
 
Java codes
Java codesJava codes
Java codes
 
Powerpoint for data communication
Powerpoint for data communication Powerpoint for data communication
Powerpoint for data communication
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
 

Similar a Variable declaration

Similar a 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
 

Más de Hanielle Cheng

Más de Hanielle Cheng (20)

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
 
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)
 
Industrial revolution
Industrial revolutionIndustrial revolution
Industrial revolution
 
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
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 
Variable declaration
Variable declarationVariable declaration
Variable declaration
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 

Último

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
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 SavingEdi Saputra
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
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...DianaGray10
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
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 Takeoffsammart93
 
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 WorkerThousandEyes
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 

Último (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
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...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
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
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

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