Who is the father of C language
Dennis Ritchie
All keywords in C are in
reserved words
Which is valid C expression
int my_num = 100,000
int my_num = 100000;
int my num = 1000;
int my_num = 100000;
What is the result of logical or relational expression in C
True or False
0 or 1
0 if an expression is false and any positive number
if an expression is true
0 or 1
The C-preprocessors are specified with _________ symbol
#
What is the sizeof(char) in a 32-bit C compiler
1
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
}
compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
Compile time error
What is the 16-bit compiler allowable range for integer constants?
(4) -32768 to 32767
Study the following program:
(2) It will keep on printing javatpoint
What is required in each C program?
What will this program print?
4525
Study the following program:
efg
Study the following program:
8
What does this declaration mean
How many times will the following loop execute?
What is the result after execution of the following code if a is 10, b is 5, and c is 10?
What will the result of num1 variable after execution of the following statements?
What will the result of len variable after execution of the following statements?
Study the following statement
What will be the output of the following C function?
#include <stdio.h>
enum birds {SPARROW, PEACOCK, PARROT};
enum animals {TIGER = 8, LION, RABBIT, ZEBRA};
int main()
{
enum birds m = TIGER;
int k;
k = m;
printf("%d\n", k);
return 0;
}
8