Related Questions
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 true about preprocessor directives
A. They begin with a hash symbol
B. They are processed by a preprocessor
C. They form an integral part of the code
D. They have to end with a semi colon
What is the correct answer?
4
A C variable cannot start with
C. A special symbol other than underscore
What is the correct answer?
4
------ is the ternary operator
What is the correct answer?
4
printf() is not a library function.
What is the correct answer?
4
An array declared as A[100][100] can hold a maximum of 100 elements.
What is the correct answer?
4
Nested macros are allowed.
What is the correct answer?
4
What is C Tokens?
A. The smallest individual units of c program
B. The basic element recognized by the compiler
C. The largest individual units of program
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
fprintf()function can be used to write into console.
What is the correct answer?
4
A declaration float a, b; occupies ___ of memory
What is the correct answer?
4
The same variable names of automatic type can be used in different functions without any conflict.
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 output of the following code is:
void main()
{
float a;
int x = 10, y = 3; a = x / y;
printf("%f", a); }
What is the correct answer?
4
The expression "b = 3 ^ 2;" will evaluate b = 9.
What is the correct answer?
4
The contents of a file opened in 'r+' mode cannot be changed.
What is the correct answer?
4
Which header file is essential for using strcmp() function?
What is the correct answer?
4
static variable will not always have assigned value.
What is the correct answer?
4
What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
A. the question mark should be an equal sign
B. the first semicolon should be a colon
C. there are too many variables in the statement
D. the conditional operator is only used with apstrings
What is the correct answer?
4
Which of the following is invalid?
What is the correct answer?
4
gets() and puts() are unformatted I/O functions.
What is the correct answer?
4
Which of the STL containers store the elements contiguously (in adjecent memory locations)?
What is the correct answer?
4
do-while loop is useful when we want the statements within the loop must be executed
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 expression (i + j)++ is illegal.
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
Which of the following is not recommended in a header file?
A. Type definitions (typedefs)
What is the correct answer?
4
The output of the following code is:
void main()
{
int z, a = 5, b = 3; z = a * 2 + 26 % 3;
printf("%d", z); }
What is the correct answer?
4
Union is used to hold different data at different time.
What is the correct answer?
4
Only one break can be used in one loop.