Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre 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
Tâche

Swipe to start coding

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

Solution

#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;
}

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 7
single

single

#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;
}

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt