Computer Science, asked by sadhwr42525, 6 months ago

What is the value of false in the following enum declaration:

enum fuzzy_logic{ false, true, maybe};

option
1


2


3

Answers

Answered by srnroofing1715
6

Answer:

true, true ,false answer

Answered by syed2020ashaels
0

Answer:

Given below is the answer

Explanation:

Enumeration, or Enum in C, is a unique class of data type that the user defines. Constant integrals or integers with names assigned by the user make up this system. The complete programme is simple to learn, comprehend, and maintain by the same or even a different programmer thanks to the usage of enum in C to name the integer values. In C, an enum is defined using the 'enum' keyword, and its constants are separated from one another by commas. For defining an enum, the fundamental syntax is:

int const1, int const2, int const3,..., int constN;

The default value of int const1 in the syntax above is 0, int const2 is 1, int const3 is 2, and so on. However, you can alter these default values after the enum is declared. Below  is an example of an enum named cars and how you can change the default values.

enum cars{BMW, Ferrari, Jeep, Mercedes-Benz};

Here, the default values for the constants are:

BMW=0, Ferrari=1, Jeep=2, and Mercedes-Benz=3. However, to change the default values, you can define the enum as follows:

enum cars{

BMW=3,

Ferrari=5,

Jeep=0,

Mercedes-Benz=1

};

See more:

https://brainly.in/question/42201105

#SPJ2

Similar questions