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.
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)