Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
isless() in C/C++
The function isless() is used to check that first argument is less than the second one. It is declared in “math.h” header file in C language. It returns true if successful otherwise it returns false.
Here is the syntax of isless() in C language,
bool isless(value1 , value2);
Here,
value1 − This is the first argument which will be checked with value2.
value2 − This is the second argument which is used to check value1 ans see that it is less or not.
Here is an example of isless() in C language,
Example
#include<stdio.h>
#include<math.h>
int main() {
int val1 = 48;
float val2 = 324.32;
if(isless(val1, val2))
printf("val1 is less than val2\n");
else
printf("val1 is not less than val2");
return 0;
}
Output
Here is the output −
val1 is less than val2
Advertisements