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 29 of 66

Explore more Topics under C Programming

Q281.
In order to create a local variable we need to use local keyword.
local int var;
Discuss
Answer: (b).False
Q282.
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
Discuss
Answer: (c).rem = fmod(3.14, 2.1);
Q283.

Is there any difference between following declarations?

1 : extern int fun();
2 : int fun();
Discuss
Answer: (b).No difference, except extern int fun(); is probably in another file
Q284.
Which of the following is not user defined data type?

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

2 :
long int l = 2.35;

3 :
enum day {Sun, Mon, Tue, Wed};
Discuss
Answer: (b).2
Q285.
Is the following statement a declaration or definition?
extern int i;
Discuss
Answer: (a).Declaration
Q286.
Identify which of the following are declarations

1 : extern int x;
2 : float square ( float x ) { ... }
3 : double pow(double, double);
Discuss
Answer: (c).1 and 3
Q287.
In the following program where is the variable a getting defined and where it is getting declared?
#include<stdio.h>
int main()
{
    extern int a;
    printf("%d\n", a);
    return 0;
}
int a=20;
Discuss
Answer: (a).extern int a is declaration, int a = 20 is the definition
Q288.
When we mention the prototype of a function?
Discuss
Answer: (b).Declaring
Q289.
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
Q290.
Which of the declaration is correct?
Discuss
Answer: (a).int length;

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!