char > int > float
int > char > float
char < int < double
double > char > int
immutable
mutable
const
volatile
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
Keywords can be used as variable names
Variable names can contain digits
Variable names do not contain blank spaces
Capital letters can be used in variable names.
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
it Compare the variable a and the variable b are same.
The value of b is assigned to variable a but if b changes later, it will not effect the value of variable a.
The value of b is assigned to variable a but if b changes later, it will effect the value of variable a.
The value of variable a is assigned to variable b, and the value of variable b is assigned to variable a.
When the following piece of code is executed, what happens?
b = 3; a = b++;
a contains 3 and b contains 4
a contains 4 and b contains 4
a contains 4 and b contains 3
a contains 3 and b contains 3
<
=
>=
<=
Id_No
ID_NO
IdNo
Id No
-4
-2.8
+2.8
+3
1return
return1
return
$return_1
“programming Trick”
“programming"
‘programming'
$ programming $
-5
1
0
+5
A
B
ADA
C++
What is the output of the following code?
main() { int a, b; a=b=4; b=a++; printf("%d %d %d %d", a++, --b, ++a, b--); }
5 3 7 3
Syntax error
5 4 5 3
6 2 6 4
What will be output if you will compile and execute the following c code?
int main() { int a=5; float b; printf("%d",sizeof(++a+b)); printf(" %d",a); return 0; }
2 6
4 6
2 5
4 5
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
What will be the output of the following code segment?
int x = 24, y = 39, z = 45; z = x + y; y = z - y; x = z - y; printf("\n%d %d %d", x, y, z);
24 39 63
39 24 63
24 39 45
39 24 45
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
put together the file and functions that are required by the program
translate the instructions into a form suitable for execution by the program
load the executable code into the memory and execute them
allow the user to type the program