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

LANGUAGE: C++

CHALLENGE:

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

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

3 Comments

  1. tanya on September 30, 2016 at 8:59 pm

    No it’s wrong,

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

    This is the correct ans.

    • anonymous on December 11, 2016 at 7:21 am

      thats for a different question number the one he list here is for 10711

  2. franky01 on May 7, 2017 at 9:21 pm

    (s!==”end”) ? 1 : 0
    This is the correct answer

Leave a Comment

You must be logged in to post a comment.