C Miscellaneous MCQs
Practice free C Miscellaneous multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 70 questions — no login required.
Question 55easy
What is the output of this C code?
#include <stdio.h>
main()
{
char *p = "Examveda C-Test";
p[0] = 'a';
p[1] = 'b';
printf("%s", p);
}Question 56hard
The following C code results in an error. State whether this statement is true or false.
#include <stdio.h>
void f(double b)
{
printf ("%ld\n",b);
}
int main()
{
inline f(100.56);
return 0;
}Question 57hard
What will be the output of the following C code?
main()
{
unsigned a=10;
long unsigned b=5l;
printf(“%lu%u”,a,b);
}Advertisement
Question 58easy
What is the binary representation of the integer -14?
Question 59easy
Functions in C Language are always . . . . . . . .
Question 60medium
What will be the error in the following C code?
main()
{
long float a=-25.373e22;
printf("%lf",a);
}Advertisement
Question 61easy
What will be the output of the following C code if the input given to the code shown below is "examveda"?
#include<stdio.h>
#define NL '\n'
void main()
{
void f(void);
printf("enter the word\n");
f();
}
void f(void)
{
char c;
if((c=getchar())!=NL)
{
f();
printf("%c",c);
}
return;
}Question 62medium
A machine in which the least significant byte is stored in the smallest address is . . . . . . . .
Question 63easy
What is the difference between the following 2 C codes?
#include <stdio.h> //Program 1
int main()
{
int d, a = 1, b = 2;
d = a++ + ++b;
printf("%d %d %d", d, a, b);
}#include <stdio.h> //Program 2
int main()
{
int d, a = 1, b = 2;
d = a++ +++b;
printf("%d %d %d", d, a, b);
}