boolean tag

18 questions


1 answers
69 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?

1 years ago

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

What is the best way to change boolean to int?

1 years ago

1 answers
85 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?

1 years ago

1 answers
110 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?

1 years ago

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

What is the default for Boolean in Java?

1 years ago

1 answers
58 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...

1 years ago

1 answers
116 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
108 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...

1 years ago

1 answers
66 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 - ...

1 years ago

1 answers
69 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 ...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.