Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Web Hosting

Bonsai Boy of New York Bonsai Trees and Accessories

BlueHost Web Hosting

Liquid Web iThemes WordPress Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

DreamHost Web Hosting

getResponse autofunnels

Liquid Web Cloud VPS Hosting

11,159 questions

15,235 answers

573 users

How to use bool array in C

1 Answer

0 votes
#include <stdio.h>     
#include <stdbool.h>

int main(void)
    bool arr[2] = {true, false};
    if (arr[0])
        puts("arr[0] = true");
        puts("arr[0] = false");
    if (arr[1])
        puts("arr[1] = true");
        puts("arr[1] = false");
    return 0;


arr[0] = true
arr[1] = false



answered May 14, 2018 by avibootz