Check out example codes for "boolean c". It will help you in understanding the concepts better.

Code Example 1

#include <stdbool.h>
bool x = true;

Code Example 2

#include <stdbool.h>

Code Example 3

#include <stdbool.h> 
int main() 
{ 
    bool arr[2] = { true, false }; 
    return 0; 
}

Code Example 4

int main() 
{ 
  bool arr[2] = {true, false}; 
  return 0; 
}

Learn ReactJs, React Native from akashmittal.com