Which of the following is the better approach to do the operation i = i * 16?
Answer: B
No answer description available for this question.
Enter details here
extern int s;
int t;
static int u;
main()
{
}
Which of s, t and u are available to a function present in another file?
Answer: A
No answer description available for this question.
Enter details here
What is the value of the following expression?
i = 1;
i < < 1>
Answer: A
No answer description available for this question.
Enter details here
Which of the following is not an arithmetic operation?
Answer: D
No answer description available for this question.
Enter details here
Which of the following statement is correct about the code snippet given below?
#include < stdio>
int main()
{
int n = 12, k;
printf(“%d”, (k = sizeof( n + 12.0))++);
return 0;
}
Answer: C
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
int i = 10;
int *p = &i;
printf("%d\n", *p++);
}
Answer: A
No answer description available for this question.
Enter details here
What is the output of this C code?
void main()
{
int a = 5;
int b = ++a + a++ + --a;
printf("Value of b is %d", b);
}
Answer: D
No answer description available for this question.
Enter details here
What is the output of the following program?
#include< stdio>
int main()
{
static int a = 3;
printf(“%d”, a --);
return 0;
}
Answer: C
No answer description available for this question.
Enter details here
Longevity of a variable refers to
Answer: A
No answer description available for this question.
Enter details here
Which of the following statement are correct?
(i) The maximum value a variable can hold depends upon its storage class.
(ii) By default all variables enjoy a static storage class.
Answer: D
No answer description available for this question.
Enter details here