SlideShare a Scribd company logo
1 of 5
Download to read offline
1) Variable:In programming, a variable is a container (storage area) to hold data.
To indicate the storage area, each variable should be given a unique name (identifier). Variable
names are just the symbolic representation of a memory location. For example:
int age=24;
Here, age is a variable of integer type. The variable is holding 24 in the above code
2) ASCII Code : ASCII (American Standard Code for Information Interchange) is a character
encoding standard. ASCII codes represent text in computers and other devices. Most modern
character-encoding schemes are based on ASCII
3) Identifier : Identifiers are the names you can give to entities such as variables, functions,
structures etc.
Identifier names must be unique. They are created to give unique name to a C entity to identify it
during the execution of a program.
For example: int age;
Here, age is identifier.
Also remember, identifier names must be different from keywords. You cannot use int as an
identifier because int is a keyword.
4) Memory Snapshot : A memory snapshot represents the memory state of the profiled
application at the moment it was captured. It contains information about all loaded classes, about
all existing objects, and about references between objects.
Snapshots can contain values of fields and arrays of primitive types (int, long, char etc.).
5) Case Sensitive : Text sometimes exhibits case sensitivity; that is, words can differ in meaning
based on differing use of uppercase and lowercase letters. Words with capital letters do not
always have the same meaning when written with lowercase letters
So many programing languages like c,c++, java ctc are case sensitive languages because they
identifies name of the variables using case sensitive only.
6) Character : It denotes any alphabet, digit or special symbol used to represent information.
These characters can be combined to form variables.To declare a variable of type character we
use the keyword char. - A single character stored in one byte.
For example:
char k;
For example, if k is a charvariable you can store the letter G in it using the following C
statement:
k='G'
Notice that you can only store a single character in a char variable
7) Floating Point : floating point is the formulaic representation that approximates a real number
so as to support a trade-off between range and precision. A number is, in general, represented
approximately to a fixed number of significant digits and scaled using an exponent in some fixed
base; the base for the scaling is normally two, ten, or sixteen. A number that can be represented
exactly is of the following form
significand X base ^ exponent
Eg:1.234 = 1234 X 10^-3
Here in above example 1234 is significand and 10 is base and -3 is exponent.
8) Assignment Statement: Once you've declared a variable you can use it, but not until it has
been declared - attempts to use a variable that has not been defined will cause a compiler error.
Using a variable means storing something in it. You can store a value in a variable using:
name = value;
For example:
a=20;
stores the value 20 in the int variable a.here we are assigning the value to the variable.
9) Control String :Strings are actually one-dimensional array of characters terminated by
anullcharacter '0'. Thus a null-terminated string contains the characters that comprise the
string followed by anull.
The following declaration and initialization create a string consisting of the word "Hello". To
hold the null character at the end of the array, the size of the character array containing the string
is one more than the number of characters in the word "Hello."
10)scanf : scanf() function is used to read character, string, numeric data from keyboard
Eg: scanf("%s", &str);
11) Conversion Specifier : There are many different conversion specifiers that can be used for
various data types.A conversion specifier begins with a percent sign, and ends with one of the
following output conversion characters. The most basic conversion specifiers simply use a
percent sign and one of these characters, such as %d to print an integer.
Print a single character.
Print an integer as a signed decimal number.
12) Argument : arguments are values passed into a function call.The command line arguments
are handled using main() function arguments where argc refers to the number of arguments
passed, and argv[] is a pointer array which points to each argument passed to the program
13) Cast Operator : if you want to store a 'long' value into a simple integer then you can type
cast 'long' to 'int'. You can convert the values from one type to another explicitly using the cast
operator
Eg :(type_name) expression
14) Increment Operator : Increment operators are used to increase the value of the variable by
one
Eg : Increment operator : ++ i ; i ++ ;
15) printf : printf() function is used to print the “character, string, float, integer, octal and
hexadecimal values” onto the output screen.
We use printf() function with %d format specifier to display the value of an integer variable.
Similarly %c is used to display character, %f for float variable, %s for string variable, %lf for
double and %x for hexadecimal variable.To generate a newline,we use “ ” in C printf()
statement
Eg ;printf("Character is %c  ", ch);
printf("String is %s  " , str);
printf("Float value is %f  ", flt)
Solution
1) Variable:In programming, a variable is a container (storage area) to hold data.
To indicate the storage area, each variable should be given a unique name (identifier). Variable
names are just the symbolic representation of a memory location. For example:
int age=24;
Here, age is a variable of integer type. The variable is holding 24 in the above code
2) ASCII Code : ASCII (American Standard Code for Information Interchange) is a character
encoding standard. ASCII codes represent text in computers and other devices. Most modern
character-encoding schemes are based on ASCII
3) Identifier : Identifiers are the names you can give to entities such as variables, functions,
structures etc.
Identifier names must be unique. They are created to give unique name to a C entity to identify it
during the execution of a program.
For example: int age;
Here, age is identifier.
Also remember, identifier names must be different from keywords. You cannot use int as an
identifier because int is a keyword.
4) Memory Snapshot : A memory snapshot represents the memory state of the profiled
application at the moment it was captured. It contains information about all loaded classes, about
all existing objects, and about references between objects.
Snapshots can contain values of fields and arrays of primitive types (int, long, char etc.).
5) Case Sensitive : Text sometimes exhibits case sensitivity; that is, words can differ in meaning
based on differing use of uppercase and lowercase letters. Words with capital letters do not
always have the same meaning when written with lowercase letters
So many programing languages like c,c++, java ctc are case sensitive languages because they
identifies name of the variables using case sensitive only.
6) Character : It denotes any alphabet, digit or special symbol used to represent information.
These characters can be combined to form variables.To declare a variable of type character we
use the keyword char. - A single character stored in one byte.
For example:
char k;
For example, if k is a charvariable you can store the letter G in it using the following C
statement:
k='G'
Notice that you can only store a single character in a char variable
7) Floating Point : floating point is the formulaic representation that approximates a real number
so as to support a trade-off between range and precision. A number is, in general, represented
approximately to a fixed number of significant digits and scaled using an exponent in some fixed
base; the base for the scaling is normally two, ten, or sixteen. A number that can be represented
exactly is of the following form
significand X base ^ exponent
Eg:1.234 = 1234 X 10^-3
Here in above example 1234 is significand and 10 is base and -3 is exponent.
8) Assignment Statement: Once you've declared a variable you can use it, but not until it has
been declared - attempts to use a variable that has not been defined will cause a compiler error.
Using a variable means storing something in it. You can store a value in a variable using:
name = value;
For example:
a=20;
stores the value 20 in the int variable a.here we are assigning the value to the variable.
9) Control String :Strings are actually one-dimensional array of characters terminated by
anullcharacter '0'. Thus a null-terminated string contains the characters that comprise the
string followed by anull.
The following declaration and initialization create a string consisting of the word "Hello". To
hold the null character at the end of the array, the size of the character array containing the string
is one more than the number of characters in the word "Hello."
10)scanf : scanf() function is used to read character, string, numeric data from keyboard
Eg: scanf("%s", &str);
11) Conversion Specifier : There are many different conversion specifiers that can be used for
various data types.A conversion specifier begins with a percent sign, and ends with one of the
following output conversion characters. The most basic conversion specifiers simply use a
percent sign and one of these characters, such as %d to print an integer.
Print a single character.
Print an integer as a signed decimal number.
12) Argument : arguments are values passed into a function call.The command line arguments
are handled using main() function arguments where argc refers to the number of arguments
passed, and argv[] is a pointer array which points to each argument passed to the program
13) Cast Operator : if you want to store a 'long' value into a simple integer then you can type
cast 'long' to 'int'. You can convert the values from one type to another explicitly using the cast
operator
Eg :(type_name) expression
14) Increment Operator : Increment operators are used to increase the value of the variable by
one
Eg : Increment operator : ++ i ; i ++ ;
15) printf : printf() function is used to print the “character, string, float, integer, octal and
hexadecimal values” onto the output screen.
We use printf() function with %d format specifier to display the value of an integer variable.
Similarly %c is used to display character, %f for float variable, %s for string variable, %lf for
double and %x for hexadecimal variable.To generate a newline,we use “ ” in C printf()
statement
Eg ;printf("Character is %c  ", ch);
printf("String is %s  " , str);
printf("Float value is %f  ", flt)

More Related Content

Similar to 1) VariableIn programming, a variable is a container (storage area).pdf

unit 1 cpds.pptx
unit 1 cpds.pptxunit 1 cpds.pptx
unit 1 cpds.pptxmadhurij54
 
function, storage class and array and strings
 function, storage class and array and strings function, storage class and array and strings
function, storage class and array and stringsRai University
 
Btech i pic u-4 function, storage class and array and strings
Btech i pic u-4 function, storage class and array and stringsBtech i pic u-4 function, storage class and array and strings
Btech i pic u-4 function, storage class and array and stringsRai University
 
Functions torage class and array and strings-
Functions torage class and array and strings-Functions torage class and array and strings-
Functions torage class and array and strings-aneebkmct
 
Mcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsMcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsRai University
 
Bsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsBsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsRai University
 
C UNIT-3 PREPARED BY M V B REDDY
C UNIT-3 PREPARED BY M V B REDDYC UNIT-3 PREPARED BY M V B REDDY
C UNIT-3 PREPARED BY M V B REDDYRajeshkumar Reddy
 
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...Rowank2
 
STRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdfSTRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdfSowmyaJyothi3
 
Diploma ii cfpc u-4 function, storage class and array and strings
Diploma ii  cfpc u-4 function, storage class and array and stringsDiploma ii  cfpc u-4 function, storage class and array and strings
Diploma ii cfpc u-4 function, storage class and array and stringsRai University
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C ProgrammingKamal Acharya
 
3 character strings and formatted input output
3  character strings and formatted input output3  character strings and formatted input output
3 character strings and formatted input outputMomenMostafa
 
C programming(part 3)
C programming(part 3)C programming(part 3)
C programming(part 3)SURBHI SAROHA
 
Interview Questions For C Language .pptx
Interview Questions For C Language .pptxInterview Questions For C Language .pptx
Interview Questions For C Language .pptxRowank2
 
Introduction to C Programming - R.D.Sivakumar
Introduction to C Programming -  R.D.SivakumarIntroduction to C Programming -  R.D.Sivakumar
Introduction to C Programming - R.D.SivakumarSivakumar R D .
 
Interview Questions For C Language
Interview Questions For C Language Interview Questions For C Language
Interview Questions For C Language Rowank2
 
Learn C# Programming - Variables & Constants
Learn C# Programming - Variables & ConstantsLearn C# Programming - Variables & Constants
Learn C# Programming - Variables & ConstantsEng Teong Cheah
 

Similar to 1) VariableIn programming, a variable is a container (storage area).pdf (20)

unit 1 cpds.pptx
unit 1 cpds.pptxunit 1 cpds.pptx
unit 1 cpds.pptx
 
function, storage class and array and strings
 function, storage class and array and strings function, storage class and array and strings
function, storage class and array and strings
 
Btech i pic u-4 function, storage class and array and strings
Btech i pic u-4 function, storage class and array and stringsBtech i pic u-4 function, storage class and array and strings
Btech i pic u-4 function, storage class and array and strings
 
Functions torage class and array and strings-
Functions torage class and array and strings-Functions torage class and array and strings-
Functions torage class and array and strings-
 
Mcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsMcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and strings
 
Bsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsBsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and strings
 
C UNIT-3 PREPARED BY M V B REDDY
C UNIT-3 PREPARED BY M V B REDDYC UNIT-3 PREPARED BY M V B REDDY
C UNIT-3 PREPARED BY M V B REDDY
 
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
C Language Interview Questions: Data Types, Pointers, Data Structures, Memory...
 
STRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdfSTRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdf
 
Diploma ii cfpc u-4 function, storage class and array and strings
Diploma ii  cfpc u-4 function, storage class and array and stringsDiploma ii  cfpc u-4 function, storage class and array and strings
Diploma ii cfpc u-4 function, storage class and array and strings
 
C Programming Unit-3
C Programming Unit-3C Programming Unit-3
C Programming Unit-3
 
Lecture 05 2017
Lecture 05 2017Lecture 05 2017
Lecture 05 2017
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
 
Strings
StringsStrings
Strings
 
3 character strings and formatted input output
3  character strings and formatted input output3  character strings and formatted input output
3 character strings and formatted input output
 
C programming(part 3)
C programming(part 3)C programming(part 3)
C programming(part 3)
 
Interview Questions For C Language .pptx
Interview Questions For C Language .pptxInterview Questions For C Language .pptx
Interview Questions For C Language .pptx
 
Introduction to C Programming - R.D.Sivakumar
Introduction to C Programming -  R.D.SivakumarIntroduction to C Programming -  R.D.Sivakumar
Introduction to C Programming - R.D.Sivakumar
 
Interview Questions For C Language
Interview Questions For C Language Interview Questions For C Language
Interview Questions For C Language
 
Learn C# Programming - Variables & Constants
Learn C# Programming - Variables & ConstantsLearn C# Programming - Variables & Constants
Learn C# Programming - Variables & Constants
 

More from annamalassociates

The three environmental changes that would likely change the relativ.pdf
The three environmental changes that would likely change the relativ.pdfThe three environmental changes that would likely change the relativ.pdf
The three environmental changes that would likely change the relativ.pdfannamalassociates
 
Spanish colonisers spoke and heard different languages than did Dutc.pdf
Spanish colonisers spoke and heard different languages than did Dutc.pdfSpanish colonisers spoke and heard different languages than did Dutc.pdf
Spanish colonisers spoke and heard different languages than did Dutc.pdfannamalassociates
 
public class Demo{ public static void main(String[] args) throws I.pdf
public class Demo{ public static void main(String[] args) throws I.pdfpublic class Demo{ public static void main(String[] args) throws I.pdf
public class Demo{ public static void main(String[] args) throws I.pdfannamalassociates
 
Prime numbers are those which have only two Factors. 1 and the numbe.pdf
Prime numbers are those which have only two Factors. 1 and the numbe.pdfPrime numbers are those which have only two Factors. 1 and the numbe.pdf
Prime numbers are those which have only two Factors. 1 and the numbe.pdfannamalassociates
 
Python codeSolutionPython code.pdf
Python codeSolutionPython code.pdfPython codeSolutionPython code.pdf
Python codeSolutionPython code.pdfannamalassociates
 
Answer The brains straight (which is also called tentorial sinus.pdf
Answer  The brains straight (which is also called tentorial sinus.pdfAnswer  The brains straight (which is also called tentorial sinus.pdf
Answer The brains straight (which is also called tentorial sinus.pdfannamalassociates
 
Microsoft accquiring NokiaMicrosoft had goodwill impairement loss.pdf
Microsoft accquiring NokiaMicrosoft had goodwill impairement loss.pdfMicrosoft accquiring NokiaMicrosoft had goodwill impairement loss.pdf
Microsoft accquiring NokiaMicrosoft had goodwill impairement loss.pdfannamalassociates
 
J           1. Accrual BasisA system of accounting in which revenu.pdf
J           1. Accrual BasisA system of accounting in which revenu.pdfJ           1. Accrual BasisA system of accounting in which revenu.pdf
J           1. Accrual BasisA system of accounting in which revenu.pdfannamalassociates
 
(a). (i) NH4Cl + H2O == NH4 OH + HClSince in water it produces str.pdf
(a). (i) NH4Cl + H2O == NH4 OH + HClSince in water it produces str.pdf(a). (i) NH4Cl + H2O == NH4 OH + HClSince in water it produces str.pdf
(a). (i) NH4Cl + H2O == NH4 OH + HClSince in water it produces str.pdfannamalassociates
 
The elements in period 6 are those starting with Cs and going acr.pdf
 The elements in period 6 are those starting with Cs and going acr.pdf The elements in period 6 are those starting with Cs and going acr.pdf
The elements in period 6 are those starting with Cs and going acr.pdfannamalassociates
 
You can find the confidence interval (CI) for a population prop.pdf
 You can find the confidence interval (CI) for a population prop.pdf You can find the confidence interval (CI) for a population prop.pdf
You can find the confidence interval (CI) for a population prop.pdfannamalassociates
 
a. 0.31Solution a. 0.31.pdf
 a. 0.31Solution a. 0.31.pdf a. 0.31Solution a. 0.31.pdf
a. 0.31Solution a. 0.31.pdfannamalassociates
 
Step1 pH change during the addition of 0.1 mol o.pdf
                     Step1 pH change during the addition of 0.1 mol o.pdf                     Step1 pH change during the addition of 0.1 mol o.pdf
Step1 pH change during the addition of 0.1 mol o.pdfannamalassociates
 
SF4 is most likely to be a covalent compound beca.pdf
                     SF4 is most likely to be a covalent compound beca.pdf                     SF4 is most likely to be a covalent compound beca.pdf
SF4 is most likely to be a covalent compound beca.pdfannamalassociates
 
please post the clear qsn..... i ll help u in ans.pdf
                     please post the clear qsn..... i ll help u in ans.pdf                     please post the clear qsn..... i ll help u in ans.pdf
please post the clear qsn..... i ll help u in ans.pdfannamalassociates
 
linear shape non- polar since there are 2 simila.pdf
                     linear shape  non- polar since there are 2 simila.pdf                     linear shape  non- polar since there are 2 simila.pdf
linear shape non- polar since there are 2 simila.pdfannamalassociates
 
B. Transcription of the viral genome for future translation (correct.pdf
B. Transcription of the viral genome for future translation (correct.pdfB. Transcription of the viral genome for future translation (correct.pdf
B. Transcription of the viral genome for future translation (correct.pdfannamalassociates
 
answer(A)Solutionanswer(A).pdf
answer(A)Solutionanswer(A).pdfanswer(A)Solutionanswer(A).pdf
answer(A)Solutionanswer(A).pdfannamalassociates
 

More from annamalassociates (20)

The three environmental changes that would likely change the relativ.pdf
The three environmental changes that would likely change the relativ.pdfThe three environmental changes that would likely change the relativ.pdf
The three environmental changes that would likely change the relativ.pdf
 
Spanish colonisers spoke and heard different languages than did Dutc.pdf
Spanish colonisers spoke and heard different languages than did Dutc.pdfSpanish colonisers spoke and heard different languages than did Dutc.pdf
Spanish colonisers spoke and heard different languages than did Dutc.pdf
 
public class Demo{ public static void main(String[] args) throws I.pdf
public class Demo{ public static void main(String[] args) throws I.pdfpublic class Demo{ public static void main(String[] args) throws I.pdf
public class Demo{ public static void main(String[] args) throws I.pdf
 
Prime numbers are those which have only two Factors. 1 and the numbe.pdf
Prime numbers are those which have only two Factors. 1 and the numbe.pdfPrime numbers are those which have only two Factors. 1 and the numbe.pdf
Prime numbers are those which have only two Factors. 1 and the numbe.pdf
 
Python codeSolutionPython code.pdf
Python codeSolutionPython code.pdfPython codeSolutionPython code.pdf
Python codeSolutionPython code.pdf
 
Answer The brains straight (which is also called tentorial sinus.pdf
Answer  The brains straight (which is also called tentorial sinus.pdfAnswer  The brains straight (which is also called tentorial sinus.pdf
Answer The brains straight (which is also called tentorial sinus.pdf
 
Microsoft accquiring NokiaMicrosoft had goodwill impairement loss.pdf
Microsoft accquiring NokiaMicrosoft had goodwill impairement loss.pdfMicrosoft accquiring NokiaMicrosoft had goodwill impairement loss.pdf
Microsoft accquiring NokiaMicrosoft had goodwill impairement loss.pdf
 
J           1. Accrual BasisA system of accounting in which revenu.pdf
J           1. Accrual BasisA system of accounting in which revenu.pdfJ           1. Accrual BasisA system of accounting in which revenu.pdf
J           1. Accrual BasisA system of accounting in which revenu.pdf
 
(a). (i) NH4Cl + H2O == NH4 OH + HClSince in water it produces str.pdf
(a). (i) NH4Cl + H2O == NH4 OH + HClSince in water it produces str.pdf(a). (i) NH4Cl + H2O == NH4 OH + HClSince in water it produces str.pdf
(a). (i) NH4Cl + H2O == NH4 OH + HClSince in water it produces str.pdf
 
The elements in period 6 are those starting with Cs and going acr.pdf
 The elements in period 6 are those starting with Cs and going acr.pdf The elements in period 6 are those starting with Cs and going acr.pdf
The elements in period 6 are those starting with Cs and going acr.pdf
 
You can find the confidence interval (CI) for a population prop.pdf
 You can find the confidence interval (CI) for a population prop.pdf You can find the confidence interval (CI) for a population prop.pdf
You can find the confidence interval (CI) for a population prop.pdf
 
a. 0.31Solution a. 0.31.pdf
 a. 0.31Solution a. 0.31.pdf a. 0.31Solution a. 0.31.pdf
a. 0.31Solution a. 0.31.pdf
 
two molecules .pdf
                     two molecules                                    .pdf                     two molecules                                    .pdf
two molecules .pdf
 
Step1 pH change during the addition of 0.1 mol o.pdf
                     Step1 pH change during the addition of 0.1 mol o.pdf                     Step1 pH change during the addition of 0.1 mol o.pdf
Step1 pH change during the addition of 0.1 mol o.pdf
 
SF4 is most likely to be a covalent compound beca.pdf
                     SF4 is most likely to be a covalent compound beca.pdf                     SF4 is most likely to be a covalent compound beca.pdf
SF4 is most likely to be a covalent compound beca.pdf
 
please post the clear qsn..... i ll help u in ans.pdf
                     please post the clear qsn..... i ll help u in ans.pdf                     please post the clear qsn..... i ll help u in ans.pdf
please post the clear qsn..... i ll help u in ans.pdf
 
one Solution one .pdf
                     one Solution                     one .pdf                     one Solution                     one .pdf
one Solution one .pdf
 
linear shape non- polar since there are 2 simila.pdf
                     linear shape  non- polar since there are 2 simila.pdf                     linear shape  non- polar since there are 2 simila.pdf
linear shape non- polar since there are 2 simila.pdf
 
B. Transcription of the viral genome for future translation (correct.pdf
B. Transcription of the viral genome for future translation (correct.pdfB. Transcription of the viral genome for future translation (correct.pdf
B. Transcription of the viral genome for future translation (correct.pdf
 
answer(A)Solutionanswer(A).pdf
answer(A)Solutionanswer(A).pdfanswer(A)Solutionanswer(A).pdf
answer(A)Solutionanswer(A).pdf
 

Recently uploaded

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Recently uploaded (20)

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

1) VariableIn programming, a variable is a container (storage area).pdf

  • 1. 1) Variable:In programming, a variable is a container (storage area) to hold data. To indicate the storage area, each variable should be given a unique name (identifier). Variable names are just the symbolic representation of a memory location. For example: int age=24; Here, age is a variable of integer type. The variable is holding 24 in the above code 2) ASCII Code : ASCII (American Standard Code for Information Interchange) is a character encoding standard. ASCII codes represent text in computers and other devices. Most modern character-encoding schemes are based on ASCII 3) Identifier : Identifiers are the names you can give to entities such as variables, functions, structures etc. Identifier names must be unique. They are created to give unique name to a C entity to identify it during the execution of a program. For example: int age; Here, age is identifier. Also remember, identifier names must be different from keywords. You cannot use int as an identifier because int is a keyword. 4) Memory Snapshot : A memory snapshot represents the memory state of the profiled application at the moment it was captured. It contains information about all loaded classes, about all existing objects, and about references between objects. Snapshots can contain values of fields and arrays of primitive types (int, long, char etc.). 5) Case Sensitive : Text sometimes exhibits case sensitivity; that is, words can differ in meaning based on differing use of uppercase and lowercase letters. Words with capital letters do not always have the same meaning when written with lowercase letters So many programing languages like c,c++, java ctc are case sensitive languages because they identifies name of the variables using case sensitive only. 6) Character : It denotes any alphabet, digit or special symbol used to represent information. These characters can be combined to form variables.To declare a variable of type character we use the keyword char. - A single character stored in one byte. For example: char k; For example, if k is a charvariable you can store the letter G in it using the following C statement: k='G' Notice that you can only store a single character in a char variable 7) Floating Point : floating point is the formulaic representation that approximates a real number
  • 2. so as to support a trade-off between range and precision. A number is, in general, represented approximately to a fixed number of significant digits and scaled using an exponent in some fixed base; the base for the scaling is normally two, ten, or sixteen. A number that can be represented exactly is of the following form significand X base ^ exponent Eg:1.234 = 1234 X 10^-3 Here in above example 1234 is significand and 10 is base and -3 is exponent. 8) Assignment Statement: Once you've declared a variable you can use it, but not until it has been declared - attempts to use a variable that has not been defined will cause a compiler error. Using a variable means storing something in it. You can store a value in a variable using: name = value; For example: a=20; stores the value 20 in the int variable a.here we are assigning the value to the variable. 9) Control String :Strings are actually one-dimensional array of characters terminated by anullcharacter '0'. Thus a null-terminated string contains the characters that comprise the string followed by anull. The following declaration and initialization create a string consisting of the word "Hello". To hold the null character at the end of the array, the size of the character array containing the string is one more than the number of characters in the word "Hello." 10)scanf : scanf() function is used to read character, string, numeric data from keyboard Eg: scanf("%s", &str); 11) Conversion Specifier : There are many different conversion specifiers that can be used for various data types.A conversion specifier begins with a percent sign, and ends with one of the following output conversion characters. The most basic conversion specifiers simply use a percent sign and one of these characters, such as %d to print an integer. Print a single character. Print an integer as a signed decimal number. 12) Argument : arguments are values passed into a function call.The command line arguments are handled using main() function arguments where argc refers to the number of arguments passed, and argv[] is a pointer array which points to each argument passed to the program 13) Cast Operator : if you want to store a 'long' value into a simple integer then you can type cast 'long' to 'int'. You can convert the values from one type to another explicitly using the cast operator Eg :(type_name) expression 14) Increment Operator : Increment operators are used to increase the value of the variable by
  • 3. one Eg : Increment operator : ++ i ; i ++ ; 15) printf : printf() function is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen. We use printf() function with %d format specifier to display the value of an integer variable. Similarly %c is used to display character, %f for float variable, %s for string variable, %lf for double and %x for hexadecimal variable.To generate a newline,we use “ ” in C printf() statement Eg ;printf("Character is %c ", ch); printf("String is %s " , str); printf("Float value is %f ", flt) Solution 1) Variable:In programming, a variable is a container (storage area) to hold data. To indicate the storage area, each variable should be given a unique name (identifier). Variable names are just the symbolic representation of a memory location. For example: int age=24; Here, age is a variable of integer type. The variable is holding 24 in the above code 2) ASCII Code : ASCII (American Standard Code for Information Interchange) is a character encoding standard. ASCII codes represent text in computers and other devices. Most modern character-encoding schemes are based on ASCII 3) Identifier : Identifiers are the names you can give to entities such as variables, functions, structures etc. Identifier names must be unique. They are created to give unique name to a C entity to identify it during the execution of a program. For example: int age; Here, age is identifier. Also remember, identifier names must be different from keywords. You cannot use int as an identifier because int is a keyword. 4) Memory Snapshot : A memory snapshot represents the memory state of the profiled application at the moment it was captured. It contains information about all loaded classes, about all existing objects, and about references between objects. Snapshots can contain values of fields and arrays of primitive types (int, long, char etc.). 5) Case Sensitive : Text sometimes exhibits case sensitivity; that is, words can differ in meaning based on differing use of uppercase and lowercase letters. Words with capital letters do not
  • 4. always have the same meaning when written with lowercase letters So many programing languages like c,c++, java ctc are case sensitive languages because they identifies name of the variables using case sensitive only. 6) Character : It denotes any alphabet, digit or special symbol used to represent information. These characters can be combined to form variables.To declare a variable of type character we use the keyword char. - A single character stored in one byte. For example: char k; For example, if k is a charvariable you can store the letter G in it using the following C statement: k='G' Notice that you can only store a single character in a char variable 7) Floating Point : floating point is the formulaic representation that approximates a real number so as to support a trade-off between range and precision. A number is, in general, represented approximately to a fixed number of significant digits and scaled using an exponent in some fixed base; the base for the scaling is normally two, ten, or sixteen. A number that can be represented exactly is of the following form significand X base ^ exponent Eg:1.234 = 1234 X 10^-3 Here in above example 1234 is significand and 10 is base and -3 is exponent. 8) Assignment Statement: Once you've declared a variable you can use it, but not until it has been declared - attempts to use a variable that has not been defined will cause a compiler error. Using a variable means storing something in it. You can store a value in a variable using: name = value; For example: a=20; stores the value 20 in the int variable a.here we are assigning the value to the variable. 9) Control String :Strings are actually one-dimensional array of characters terminated by anullcharacter '0'. Thus a null-terminated string contains the characters that comprise the string followed by anull. The following declaration and initialization create a string consisting of the word "Hello". To hold the null character at the end of the array, the size of the character array containing the string is one more than the number of characters in the word "Hello." 10)scanf : scanf() function is used to read character, string, numeric data from keyboard Eg: scanf("%s", &str); 11) Conversion Specifier : There are many different conversion specifiers that can be used for
  • 5. various data types.A conversion specifier begins with a percent sign, and ends with one of the following output conversion characters. The most basic conversion specifiers simply use a percent sign and one of these characters, such as %d to print an integer. Print a single character. Print an integer as a signed decimal number. 12) Argument : arguments are values passed into a function call.The command line arguments are handled using main() function arguments where argc refers to the number of arguments passed, and argv[] is a pointer array which points to each argument passed to the program 13) Cast Operator : if you want to store a 'long' value into a simple integer then you can type cast 'long' to 'int'. You can convert the values from one type to another explicitly using the cast operator Eg :(type_name) expression 14) Increment Operator : Increment operators are used to increase the value of the variable by one Eg : Increment operator : ++ i ; i ++ ; 15) printf : printf() function is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen. We use printf() function with %d format specifier to display the value of an integer variable. Similarly %c is used to display character, %f for float variable, %s for string variable, %lf for double and %x for hexadecimal variable.To generate a newline,we use “ ” in C printf() statement Eg ;printf("Character is %c ", ch); printf("String is %s " , str); printf("Float value is %f ", flt)