bool[] a= new bool() c++ code example
Example 1: bool c++
#include<stdio.h>
#include <stdbool.h>
main() {
bool value = true;
(value) ? printf("value is true"): printf("value is false");
}
Example 2: bool function in c++
bool Divisible(int a, int b) {
return (a % b) == 0;
}