boolean tag

18 questions


1 answers
85 views
0
Why did you define TRUE and FALSE macros like this?

I saw in the book that TRUE/FALSE was defined like this, but I don't know the reason. #define TRUE '/'/'/' #define FALSE '-'-'-'What does this mean?Why can you write that one-zero?

2 years ago

1 answers
155 views
0
How do I change boolean to int?

What is the best way to change boolean to int?

2 years ago

1 answers
99 views
0
Where is the bowl type defined in C?

How do you use boolean type in C?bool , true, false all red lines appearedThen do I have to solve everything with 1/0 for C?

2 years ago

1 answers
142 views
0
Linux kernel code writes boolean. Is this okay?

As far as I know, there's a bowl only on C++, and you have to define it on CI saw you write boolean in the Linux kernel code.Did I get it wrong? TT?

2 years ago

1 answers
128 views
0
What is the default for Boolean in Java?

What is the default for Boolean in Java?

2 years ago

1 answers
73 views
0
Write (a + b == cor a + c == b + c == a) the shortest

a + b == cor a + c == bob + c == a You want to express it in the shortest code.That's the limit I can think of But I'm a little worried if I made it right, so I wonder if there's a better waya + b + c...

2 years ago

1 answers
141 views
0
Why is 'a == b or d' always true?

I'm working on a security system that prevents access from unauthorized users.import sysprint(Hello. Please enter your name:)name = sys.stdin.readline().strip()if name == Kevin or Jon or Inbar: print(...


1 answers
147 views
0
Please save me. Boolean, I have a questionPlease save me(Crying)

I'm writing a program to see which input.txt has all the numbers from 0 to 99.Here's the program you've written.fname=input('Enter a file name:')try: fhand=open(fname)except: print('File cannot be ope...

2 years ago

1 answers
87 views
0
Please check if the Java programming example is correct.

I'm studying after looking at the example question, but I don't understand the question well.The result value and type of the next equationShould I write down the value and type separately?Number 1 - ...

2 years ago

1 answers
104 views
0
The best way to make sure that at least two of the three boolean are true

I was doing an interview and the interviewer told me to write a code to find out if two or more are true when there are three boolean variablesboolean atLeastTwo(boolean a, boolean b, boolean c) { if ...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.