Results of comparison operations in C and C++
In C, data type of result of comparison operations is int. For example, see the following program.
Whereas in C++, type of results of comparison operations is bool. For example, see the following program.
This article is contributed by Rajat. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
My Personal Notes arrow_drop_up
Please Login to comment...