adplus-dvertising

Welcome to the Data Types,Operators and Expressions in C MCQs Page

Dive deep into the fascinating world of Data Types,Operators and Expressions in C with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Data Types,Operators and Expressions in C, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Data Types,Operators and Expressions in C, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Data Types,Operators and Expressions in C. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Data Types,Operators and Expressions in C. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Data Types,Operators and Expressions in C MCQs | Page 34 of 66

Explore more Topics under C Programming

Q331.
Point out the error in the following program (if it is compiled with Turbo C compiler).
#include<stdio.h>
int main()
{
    display();
    return 0;
}
void display()
{
    printf("CompSciBits.com");
}
Discuss
Answer: (c).display() is called before it is defined
Q332.
Point out the error in the following program.
#include<stdio.h>
int main()
{
    void v = 0;

    printf("%d", v);

    return 0;
}
Discuss
Answer: (a).Error: Declaration syntax error 'v' (or) Size of v is unknown or zero.
Q333.
Point out the error in the following program.
#include<stdio.h>
struct emp
{
    char name[20];
    int age;
};
int main()
{
    emp int xx;
    int a;
    printf("%d\n", &a);
    return 0;
}
Discuss
Answer: (b).Error: in emp int xx;
Q334.
Which of the following is correct about err used in the declaration given below?
typedef enum error { warning, test, exception } err;
Discuss
Answer: (a).It is a typedef for enum error.
Q335.
Point out the error in the following program.
#include<stdio.h>
int main()
{
    int (*p)() = fun;
    (*p)();
    return 0;
}
int fun()
{
    printf("CompSciBits.com\n");
    return 0;
}
Discuss
Answer: (b).Error: fun() prototype not defined
Q336.
Which of the structure is incorrcet?

1 :
struct aa
{
int a;
float b;
};

2 :
struct aa
{
int a;
float b;
struct aa var;
};

3 :
struct aa
{
int a;
float b;
struct aa *var;
};
Discuss
Answer: (b).2
Q337.
Which of the structure is correct?


1 :
struct book
{
char name[10];
float price;
int pages;
};


2 :
struct aa
{
char name[10];
float price;
int pages;
}


3 :
struct aa
{
char name[10];
float price;
int pages;
}
Discuss
Answer: (a).1
Q338.
1 :
typedef long a;extern int a c;

2 :
typedef long a;extern a int c;

3 :
typedef long a;extern a c;
Discuss
Answer: (c).3 correct
Q339.
Which of the following is the correct order of evaluation for the below expression?z = x + y * z / 4 % 2 - 1
Discuss
Answer: (a).* / % + - =
Q340.
Which of the following is the correct order if calling functions in the below code?
a = f1(23, 14) * f2(12/4) + f3();
Discuss
Answer: (c).Order may vary from compiler to compiler

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!