Related Questions
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 of the following shows the correct hierarchy of arithmetic operations in C
What is the correct answer?
4
Which of the following is not a preprocessor directive
What is the correct answer?
4
The output of the following code is:
void main()
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}
What is the correct answer?
4
The function fopen() on failure returns---------------------.
What is the correct answer?
4
What will be output if you will compile and execute the following c code?
#include
#define x 5+2
int main(){
int i;
i=x*x*x;
printf("%d",i);
return 0;
}
What is the correct answer?
4
char *s[10] defines an array of ------------------------
What is the correct answer?
4
The main() function can call itself recursively.
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
What is right way to Initialization array?
A. int num[6] = { 2, 4, 12, 5, 45, 5 } ;
B. int n{} = { 2, 4, 12, 5, 45, 5 } ;
C. int n{6} = { 2< 4< 12 } ;
D. int n(6) = { 2, 4, 12, 5, 45, 5 } ;
What is the correct answer?
4
When a user defined function is defined in program, then it has to be called at least once from the main().
What is the correct answer?
4
The default initial value of automatic storage class is 0.
What is the correct answer?
4
A recursive function calls itself again and again.
What is the correct answer?
4
Which one of the following is not a fundamental data type in C++
What is the correct answer?
4
The output of the following code is:
void main()
{
int a = 0;
while (a<=50) for(;;) if(++a % 50==0) break;
printf("a = %d", a);
}
What is the correct answer?
4
The contents of a file opened in 'r+' mode cannot be changed.
What is the correct answer?
4
All elements of a structure are allocated contiguous memory locations.
What is the correct answer?
4
The -------------------------- loop executes at least once.
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
An array elements are always stored in _________ memory locations.
What is the correct answer?
4
There are total ------ numbers of operators in 'C'.
What is the correct answer?
4
C programs are converted into machine language with the help of
What is the correct answer?
4
void' is a datatype.
What is the correct answer?
4
struct stud
{
int roll;
char name[20];
float marks;
} *p;
What will be the byte size of p?
What is the correct answer?
4
The output of the following code is:
void main()
{
int a = 1, b=2;
int *ip;
ip=&a;
b=*ip;
printf("%d", b);
}
What is the correct answer?
4
The output of the following code is:
main()
{
int sub[50];
for(i=0; i<=48;i++)
{
sub[i]=i;
printf("
%d", sub[i]);
}
}
A. 0 to 48 will be displayed
What is the correct answer?
4
Character data types cannot be declared as unsigned.
What is the correct answer?
4
No commas or blanks are allowed within an integer or a real constant.
What is the correct answer?
4
/* The C language.
/* is a procedural language .*/*/
The above statement is valid.
What is the correct answer?
4
The-------------------- statement helps immediate exit from any part of the loop