Father of C
Dennis Ritchie
operator is used to assign a value to a variable
=
size of double is
8 bytes
which data type is not acceptable in Switch case
float
Which loop is called entry controlled loop
while
The process of converting C code into machine code
compilation
(5 == 5) || (3 > 4)
true
data type is used to store decimal numbers with high precision
double
#include <stdio.h>
void main() {
int x = 1, y = 0, z = 5;
int a = x && y || z++;
printf("%d", z);
}
6
Which loop checks the condition after executing the body?
do-while
escape sequence is used to move to a new line in C
\n
the output of
printf("%d", 7/2);
3
data type which has smallest storage size
char
keyword is used to test multiple conditions in C
switch
int i = 1;
while (i < 3)
printf("%d", i++);
12
function used to display output on the screen.
printf
shorthand for x = x - y;
x-=y
range of an unsigned char
0 to 255
int x = 7;
if (x > 10)
printf("A");
else if (x > 5)
printf("B");
else
printf("C");
B
Which statement skips the rest of the current loop iteration?
continue
format specifier for an integer in printf/scanf
%d
int x = 5;
printf("%d", x++);
5
How many precision points are acceptable in float after decimal
6 to 7
#include <stdio.h>
int main()
{
int a = 10;
double b = 5.6;
int c;
c = a + b;
printf("%d", c);
}
15
int i = 5;
while (--i > 0)
printf("%d ", i);
4
3
2