Answers for "how to print boolean values in c++"

C++
0

how to print with the bool value in cpp

#include <iostream>
#include <iomanip>

int main() {
    std::cout<<false<<"n";
    std::cout << std::boolalpha;   
    std::cout<<false<<"n";
    return 0;
}
Posted by: Guest on June-14-2021

Browse Popular Code Answers by Language