Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Logical Operators Practice | Operators
C Basics

book
Logical Operators Practice

Here's a summary of the primary logical operators:

SymbolNameUsage ExampleDescription
&&ANDa && ba AND b
||ORa || ba OR b
!NOT!aNOT a
Compito

Swipe to start coding

Choose the appropriate comparison operators to ensure the expression evaluates to true (logical 1).

Soluzione

#include <stdio.h>

int main()
{
int x = -6;

bool point = (x > -32 && x < 0);

printf("Is the expression logically correct?\n");
printf("%d\n", point);

return 0;
}

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 7
#include <stdio.h>

int main()
{
int x = -6;

bool point = (x ___ -32 && x ___ 0);

printf("Is the expression logically correct?\n");
printf("%d\n", point);

return 0;
}

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt