81. Which of the following typecasting is accepted by C?
82. Which of the following is a ternary operator?
83. What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 2;
if (a >> 1)
printf("%d\n", a);
}
#include <stdio.h>
int main()
{
int a = 2;
if (a >> 1)
printf("%d\n", a);
}
84. What will be the output of the following C code?
#include <stdio.h>
int const print()
{
printf("example.com");
return 0;
}
void main()
{
print();
}
#include <stdio.h>
int const print()
{
printf("example.com");
return 0;
}
void main()
{
print();
}
85. What will be the output of the following C code?
#include <stdio.h>
void main()
{
double b = 3 && 5 & 4 % 3;
printf("%lf", b);
}
#include <stdio.h>
void main()
{
double b = 3 && 5 & 4 % 3;
printf("%lf", b);
}
86. Operation "a = a * b + a" can also be written as . . . . . . . .
87. Which of the following is an invalid assignment operator?
88. Which of the following are unary operators?
89. Which of the following data type will throw an error on modulus operation(%)?
90. What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 0, y = 2, z = 3;
int a = x & y | z;
printf("%d", a);
}
#include <stdio.h>
void main()
{
int x = 0, y = 2, z = 3;
int a = x & y | z;
printf("%d", a);
}
Read More Section(C Fundamentals)
Each Section contains maximum 100 MCQs question on C Fundamentals. To get more questions visit other sections.