Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,037 questions

40,788 answers

573 users

How to convert __int64 to bool in C

2 Answers

0 votes
#include <stdio.h> 
#include <stdbool.h>
 
int main(void) 
{ 
    __int64 i64 = 1;
    bool b = i64 != 0;
     
    printf("%i\n", b);
     
    return 0; 
} 
   
   
   
/*
run:
   
1
 
*/

 





answered Aug 10, 2019 by avibootz
0 votes
#include <stdio.h> 
#include <stdbool.h>
 
int main(void) 
{ 
    __int64 i64 = 1;
    bool b = i64 != 0;
     
    printf(b ? "true" : "false");
     
    return 0; 
} 
   
   
   
/*
run:
   
true
 
*/

 





answered Aug 10, 2019 by avibootz

Related questions

1 answer 41 views
1 answer 81 views
1 answer 62 views
62 views asked Apr 10, 2022 by avibootz
1 answer 115 views
115 views asked Aug 11, 2019 by avibootz
1 answer 126 views
126 views asked Aug 11, 2019 by avibootz
...