1. Structure can be used
Answer: All the above
Explanation:Here is no explanation for this answer
Workspace
Nagarro TCS Wipro
2. What is the output of the program?
#include
int main()
{
extern int a;
printf("%d\n",a);
return 0;
}
int a =20;
Answer: 20
Explanation:Here is no explanation for this answer
Workspace
Nagarro
3. C language is available for which of the following Operating System?
Answer: All of these
Explanation:Here is no explanation for this answer
Workspace
Nagarro
4. #include
int main()
{
int i,j;
i = j =2;
while ( --i && j++)
printf("%d %d",i,j);
return 0;
}
Answer: 1 3
Explanation:Here is no explanation for this answer
Workspace
Nagarro
5. The size of generic pointer in c is 2 __
Answer: Bytes
Explanation:Here is no explanation for this answer
Workspace
Nagarro
6. int func(int);
double func(int);
int func(float);
Answer: All of the mentioned.
Explanation:Here is no explanation for this answer
Workspace
Nagarro
7. The smallest integer than can be represented by an 8-bit number in 2's complement form is
Answer: -128
Explanation:Here is no explanation for this answer
Workspace
Nagarro
8. The five items: A,B,C,D and E are pushed in stack, one after the other starting from A. The stack is
Is popped four items and each element is inserted in a queue. Then two elements are deleted from the queue and pushed back on the stack . Now one item is popped from the stack.
The popped item is.
Answer: D
Explanation:Here is no explanation for this answer
Workspace
Nagarro
9. #include
void main()
{
int a=0, b=0;
a = (b =75)+9;
printf("\n%d, %d ",a,b);
}
Answer: 84, 75
Explanation:Here is no explanation for this answer
Workspace
Nagarro
10. #include
int main()
{
int x;
for (x=-1; x<10;x++)
{
if (x<5)
continue;
else
break;
printf("Nagarro");
}
return 0;
}
Answer: 0 times
Explanation:Here is no explanation for this answer
Workspace
Nagarro