Write an expression that evaluates to true if and only if the C-string s equals the C-string “end”.

Write an expression that evaluates to true if and only if the C-string s equals the C-string “end”.

LANGUAGE: C++

CHALLENGE:

Write an expression that evaluates to true if and only if the C-string s equals the C-string “end”.

SOLUTION:

(s=="end") ? 1 : 0

Add comment