+ 1

Why Am I Not Getting Errors?

I am trying to compare 3 values that are same. if(a==b==c) { cout<<"what is happening :(" } And I am not taking any errors. Program is saying that "No Output".

25th Sep 2017, 8:39 AM
Yusuf
Yusuf - avatar
7 Respuestas
+ 7
Because (a==b)==c Or: true==c / false==c is what's tested. It's false either way, so No Output
25th Sep 2017, 8:42 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 7
He marked a best answer showing he got what he wants
25th Sep 2017, 8:54 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
It doesn't! Let's assume he corrects his syntax and declares a b c
25th Sep 2017, 8:49 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
Nevermind $Vengat. I like to take my answer from someone that can understand what I want.
25th Sep 2017, 8:59 AM
Yusuf
Yusuf - avatar