Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7026511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:07:38+00:00 2026-05-28T00:07:38+00:00

This returns an error: return (arg[0] == – && arg[1] == -) ? true

  • 0

This returns an error:

return (arg[0] == "-" && arg[1] == "-") ? true : false;

error: ISO C++ forbids comparison between pointer and integer

However, this does not:

return (arg[0] == '-' && arg[1] == '-') ? true : false;

What is the difference between ' and " ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:07:38+00:00Added an answer on May 28, 2026 at 12:07 am

    Single-quotes denote a character literal. Double-quotes denote a string literal.

    So '-' is of type char1, whereas "-" is of type const char[2] (which typically decays to const char *).


    1 int in C.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can someone please help me. why does this return an error: Dim stuff As
This code returns an error: AttributeError: can't set attribute This is really a pity
NHibernate is driving me 'Nuts'!!! I have the following mapping. Which returns this error
The debugger threw me this error UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:
huh? google returns nothing on what this error is... All I am doing is
The Emacs code for apply-partially is this: (defun apply-partially (fun &rest args) Return a
Should I be using this method of throwing errors: if (isset($this->dbfields[$var])) { return $this->dbfields[$var];
private void EnsureCurrentlyValid() { //I'm valid if IDataErrorInfo.this[] returns null for every property var
In Oracle, this returns 03/01/2010. That does not make sense to me. Anybody know
I'm trying to decode the result of the Python os.wait() function. This returns, according

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.