Related Questions
What is the correct answer?
4
printf() is not a library function.
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:
main()
{
int a = 5, b = 6;
(a == b? printf("%d", a));
}
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
The output of the following code is:
#define sqr(x= x*x)
main()
{
int a = 10, b = 5;
printf("%d, %d", sqr(a+b),sqr(++a));
}
What is the correct answer?
4
The identifier argv[] is a pointer to an array of strings.
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
Bitwise operators can operate upon?
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
What would be the output of the following program?
int x=40;
main(){
int x=20;
printf("
%d",x);
}
What is the correct answer?
4
If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
What is the correct answer?
4
fopen() function returns a pointer to the open file.
What is the correct answer?
4
void' is a datatype.
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
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
struct stud
{
int roll;
char name[20];
float marks;
} *p;
What will be the byte size of p?
What is the correct answer?
4
gets() and puts() are unformatted I/O functions.
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
# define PI = 8;' is the correct declaration of macros.
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
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
Structures within structures cannot be created.
What is the correct answer?
4
The output of the following code is:
void main()
{
int a;
int &b = a;
a=100;
printf("b=%d\ta=%d
", b,a);
}
What is the correct answer?
4
Operation between an integer and float always yields a float result.
What is the correct answer?
4
C programming language was developed by
What is the correct answer?
4
Which classes allow primitive types to be accessed as objects?
What is the correct answer?
4
Which among the following is a unconditional control structure
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
Variables declared as register storage type gets stored in CPU registers.
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