본문 바로가기

IT/modern_c

Modern C 에서는 bool 타입의 활용이 가능하다.

반응형

stdbool.h 를 include 하면 활용가능!

#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>

int main(void){
    
    bool test = true;
    if(test){
        printf("TRUE");
    }
    return EXIT_SUCCESS;
}
반응형