Thread: Lvalue in C programming

  1. #1
    Registered User
    Join Date
    Sep 2011
    Location
    India
    Posts
    27

    Question Lvalue in C programming

    Hello experts

    What is lvalue in C? I have heard about it but i m not able to understand it completely?


    Regards

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    A quick search brought up this FAQ glossary on lvalue.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by sumit180288 View Post
    Hello experts

    What is lvalue in C? I have heard about it but i m not able to understand it completely?


    Regards
    In it's most basic terms... It's a value that is suitable for use on the left side of an equals sign.

    Yes, it's a bit more complex than that but that's the core of it.

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by sumit180288 View Post
    Hello experts

    What is lvalue in C? I have heard about it but i m not able to understand it completely?


    Regards
    I could be wrong, but it would appear that someone doesn't want to do their own homework.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by AndrewHunter View Post
    I could be wrong, but it would appear that someone doesn't want to do their own homework.
    Well... there's always THIS

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error: lvalue required, pretty sure it's an lvalue
    By brandones in forum C Programming
    Replies: 18
    Last Post: 08-22-2011, 08:06 PM
  2. Get lvalue through rvalue
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 12-17-2007, 08:53 AM
  3. how to use reference for lvalue
    By jabka in forum C++ Programming
    Replies: 9
    Last Post: 04-22-2007, 02:08 PM
  4. not an lvalue
    By swampfox in forum C++ Programming
    Replies: 3
    Last Post: 08-06-2004, 06:23 PM
  5. lvalue
    By studentc in forum C Programming
    Replies: 3
    Last Post: 05-13-2004, 09:45 AM

Tags for this Thread