empty character constant ??

This is a discussion on empty character constant ?? within the C++ Programming forums, part of the General Programming Boards category; Hello friends.I am once again bothering u people but what else can I do.I am a beginner.My today's question is ...

  1. #1
    o0o
    o0o is offline
    Registered User o0o's Avatar
    Join Date
    Dec 2003
    Posts
    37

    Post empty character constant ??

    Hello friends.I am once again bothering u people but what else can I do.I am a beginner.My today's question is that what is "EMPTY CHARACTER CONSTANT"? and what is its function? thanku.

    People who are angry at my stupid questions can accept my apology but please don't post any hurting remarks.Thanku v m.

  2. #2
    King of the Internet Fahrenheit's Avatar
    Join Date
    Oct 2001
    Posts
    128
    '\0' ?

    I don't really understand what you are saying.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I am once again bothering u people but what else can I do.
    It's no bother.

    >what is "EMPTY CHARACTER CONSTANT"?
    Two single quotes with nothing in the middle:
    Code:
    int main()
    {
      char c = '';
    }
    This would give you an empty character constant error since such a construct is illegal.

    >People who are angry at my stupid questions can accept my apology
    If somebody flames you for what they perceive to be a stupid question, you can rest assured that they will be flamed by everyone else in return. We don't operate that way.

    >but please don't post any hurting remarks.
    One thing you should be aware of is that we won't coddle you. We just tend to answer questions in the most efficient manner, which tends to come off as rude or cruel. Look past all of that and you will find a great deal of useful information.
    My best code is written with the delete key.

  4. #4
    o0o
    o0o is offline
    Registered User o0o's Avatar
    Join Date
    Dec 2003
    Posts
    37

    error?

    If it gives error then y? we use this in some statements?

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    > If it gives error then y? we use this in some statements?
    Like we have any possible idea as to how you've messed up the code this time....
    Post some actual code and actual error messages when you get stuck.
    At best, we'll make random guesses - at worst, we'll ignore you.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Registered User
    Join Date
    Jul 2010
    Posts
    1
    Quote Originally Posted by o0o View Post
    Hello friends.I am once again bothering u people but what else can I do.I am a beginner.My today's question is that what is "EMPTY CHARACTER CONSTANT"? and what is its function? thanku.

    People who are angry at my stupid questions can accept my apology but please don't post any hurting remarks.Thanku v m.
    you just need to add the blank between '', it should be like ' ';it works.
    thank you!

  7. #7
    The larch
    Join Date
    May 2006
    Posts
    3,573
    An answer to a question from 2003!
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  8. #8
    Registered User
    Join Date
    May 2010
    Posts
    18
    Quote Originally Posted by anon View Post
    An answer to a question from 2003!
    Perhaps they needed time to think about it ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Blank Character Constant Problem
    By rrc55 in forum C Programming
    Replies: 9
    Last Post: 02-10-2009, 02:50 PM
  2. multi-character character constant error
    By robwhit in forum C Programming
    Replies: 3
    Last Post: 07-15-2007, 12:12 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  5. Character handling help
    By vandalay in forum C Programming
    Replies: 18
    Last Post: 03-29-2004, 04:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21