71. The following C code can be rewritten as . . . . . . . .
c = (n) ? a : b;
c = (n) ? a : b;
72. Which of the following is a User-defined data type?
73. Which of the following declaration is illegal?
74. What will be the output of the following C code?
#include <stdio.h>
void main()
{
char a = 'A';
char b = 'B';
int c = a + b % 3 - 3 * 2;
printf("%d\n", c);
}
#include <stdio.h>
void main()
{
char a = 'A';
char b = 'B';
int c = a + b % 3 - 3 * 2;
printf("%d\n", c);
}
75. What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 10;
int *p = &i;
printf("%d\n", *p++);
}
#include <stdio.h>
int main()
{
int i = 10;
int *p = &i;
printf("%d\n", *p++);
}
76. What will be the data type of the result of the following operation?
(float)a * (int)b / (long)c * (double)d
(float)a * (int)b / (long)c * (double)d
77. Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?
78. What will be the output of the following C code?
#include <stdio.h>
int main()
{
int p = 10, q = 20, r;
if (r = p = 5 || q > 20)
printf("%d", r);
else
printf("No Output\n");
}
#include <stdio.h>
int main()
{
int p = 10, q = 20, r;
if (r = p = 5 || q > 20)
printf("%d", r);
else
printf("No Output\n");
}
79. Which of the following statement is false?
80. What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 8;
int m = 7;
k < m ? k++ : m = k;
printf("%d", k);
}
#include <stdio.h>
void main()
{
int k = 8;
int m = 7;
k < m ? k++ : m = k;
printf("%d", k);
}
Read More Section(C Fundamentals)
Each Section contains maximum 100 MCQs question on C Fundamentals. To get more questions visit other sections.