Related Questions
What is the correct answer?
4
= and = = have the same operation.
What is the correct answer?
4
The output of the following code is:
void main()
{
static int a = 1, b, c;
if (a>=2) b=2; c=3;
printf("%d\t%d", b,c);
}
What is the correct answer?
4
Which options shows the correct hierarchy of arithmetic operators
What is the correct answer?
4
continue statement is used
A. to go to the next iteration in a loop
C. exit and return to the main function
D. restarts iterations from beginning of loop
What is the correct answer?
4
If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?
What is the correct answer?
4
enum helps to create user defined datatype.
What is the correct answer?
4
Union is used to hold different data at different time.
What is the correct answer?
4
Variables declared as register storage type gets stored in CPU registers.
What is the correct answer?
4
The function fopen() on failure returns---------------------.
What is the correct answer?
4
The identifier argv[] is a pointer to an array of strings.
What is the correct answer?
4
The output of the following code is:
main()
{
int k, num = 30;
k = (num > 5 ? (num <= 10 ? 100 : 200) : 500);
printf("
%d", num);
}
What is the correct answer?
4
The-------------------- statement helps immediate exit from any part of the loop
What is the correct answer?
4
Left shift operator rotates the bits on the left and places them to the right.
What is the correct answer?
4
The main() function can call itself recursively.
What is the correct answer?
4
A function to be called must be ended with a----------------
What is the correct answer?
4
The expression 'int j = 6 + 3 % -9;' evaluates to -1.
What is the correct answer?
4
Which of the following is an example of compounded assignment statement?
What is the correct answer?
4
Identify the wrong statement
What is the correct answer?
4
The output of the following code is:
int f(int a, int b);
void main()
{
int a = 12, b=154;
printf("%d", f(a, b));
}
int f(int a, int b)
{
if (a<b) return(f(b, a));
if(b==0) return(a);
return (f(b, a % b));
}
What is the correct answer?
4
The default initial value of automatic storage class is 0.
What is the correct answer?
4
It is necessary to initialize the array at the time of declaration.
What is the correct answer?
4
A multidimensional array A[10][9] can store-------- number of elements
What is the correct answer?
4
The array 'char name[10] can consist of a maximum of 9 characters.
What is the correct answer?
4
perror( ) function used to ?
B. prints the error message specified by the compiler
C. prints the garbage value assigned by the compiler
What is the correct answer?
4
fprintf()function can be used to write into console.
What is the correct answer?
4
unsigned char has a range from 0 to ------------
What is the correct answer?
4
p++ executes faster than p + 1.
What is the correct answer?
4
The output of the following code is:
void main()
{
int a = 20;
printf("%d\t%d
", ++a, a);
}
What is the correct answer?
4
Which of the following is not recommended in a header file?
A. Type definitions (typedefs)
What is the correct answer?
4
------ is the ternary operator