Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about relational-operators

Read more about relational-operators

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - relational-operators

Why does it display the sum if numbers aren't between the 2 values?

I want it to not display the result of the sum if the numbers are lower or equal to 1 or 1000. I don't know if using if is the best way, but that's what I tried using, and I don't really understand wh...
test-img

NickPG44

c++

if-statement

constraints

logical-and

relational-operators

Votes: 0

Answers: 3

Latest Answer

The expression in this if statement if ( 1 <= a, b, c <= 1000) is an expression with the comma operator. It is equivalent to if ( ( 1 <= a ), ( b ), ( c <= 1000 ) ) and the value of the ...
test-img

Vlad from Moscow

Comparing unsigned integer with negative literals

I have this simple C program. #include <stdlib.h> #include <stdio.h> #include <stdbool.h> bool foo (unsigned int a) { return (a > -2L); } bool bar (unsigned long a) { re...
test-img

Sourav Ganguly

c++

c

language-lawyer

implicit-conversion

relational-operators

Votes: 0

Answers: 4

Latest Answer

This is covered in C classes and is specified in the documentation. Here is how you use documents to figure this out. In the 2018 C standard, you can look up > or “relational expressions” in the in...
test-img

Eric Postpischil

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved