71. main()
{
int a=10,*p; int *vp; p=&a; vp=p;
printf("%d",*p); // p→ a both p & vp points to a
printf("%d",*vp); // vp → a
}
Answer:
Explanation:Here is no explanation for this answer
Workspace
Wipro NLTH Nagarro
72. main()
{
int a= - - 2;
printf("%d",a);
}
Answer:
Explanation:--2 is incorrect, // Invalid because lvalue is required to increment
Workspace
Wipro NLTH Nagarro
73. #include
int main()
{
int a[]={1,5};
printf("%d,%d",*a,(*a)++);
//a is base address i.e. a[0] *a its content (*a)++;
//content of a[0] is incremented by 1 printf("%d",*a);
//new value will be 2
}
Answer:
Explanation:Here is no explanation for this answer
Workspace
Wipro NLTH Nagarro
74. #include
main()
{
printf("%%%%");
}
Answer:
Explanation:Here is no explanation for this answer
Workspace
Wipro NLTH Nagarro
75. main()
{
int a[3]={1,2,3};
printf("%d", 2[a]); // 2[a] → a[2] → *(a+2) all are same
}
Answer:
Explanation:Here is no explanation for this answer
Workspace
Wipro NLTH Nagarro
76. #include
void main()
{
int x;
x=10,20,30; // Assigns first value to z i.e. 10
printf("%d",x);
return 0;
}
77. Which of the below function is NOT declared in math.h ?
Answer:
Explanation:Here is no explanation for this answer
Workspace
Wipro NLTH Nagarro
78. A memory leak happens when
Answer:
Explanation:Here is no explanation for this answer
Workspace
Wipro NLTH Nagarro
79. #include
int main()
{
int x,y;
for(x=5;x>=1;x--)
{
for(y=1;y<=x;y++) printf("%d ",y);
}
}
Answer:
Explanation:Here is no explanation for this answer
Workspace
Wipro NLTH Nagarro