Jan 24, 2022

Boolean Datatype (C Lang.)

Boolean datatype in c

 //Dealing with boolean values in c
#include <stdio.h>

//To use boolean values
#include<stdbool.h>


int main() {
    if(true){
        printf("Result : true");
        return 0;
    }
    printf("Result : false");
   
    return 0;
}

No comments:

Post a Comment

Comparing two files in C language.

Operations on More than one File.    # include < stdio.h > # include < stdlib.h > # include < string.h > int main ( int ...