find the even or odd number without condition statement #code #coding #interviewquestions

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

First of all, this type of shit is why C++ is unsafe and forget about readability.

Also, it's (n&1) * 6. At the 5th index, it’s a null character, hence it won't print anything if n is odd.

larjunmnath
visit shbcf.ru