why always " _ " .. whats so good in that

Discussion in 'QnA (read only)' started by Guest, Dec 4, 2004.

Thread Status:
Not open for further replies.
  1. Guest

    Guest Guest

    hey guys have you marked that why there is _ is used as valid character that can be used in valid variable name in most programing language.. what so goo d in that is ther any reason fro it ???

    and for email account also it can be (only it) used with alphabets and numbers to specify username ?? why ????
     
  2. go4inet

    go4inet New Member

    Joined:
    Feb 18, 2004
    Messages:
    300
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    Good Post I must say !
    By the my answer wud be, coz its Unique :lol: i know this is funny ! But still When i get a good answer, I will post them here

    Regards,
    Vinay

    PS : Good Thread ! Dude ! Keep it Up !
     
  3. OP
    OP
    Guest

    Guest Guest

    waiting.........
     
  4. imprince

    imprince New Member

    Joined:
    Dec 2, 2004
    Messages:
    227
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Ludhiana
    haha kya baat hai :evil: plz reply don't spoil ur time and knowledge :evil:
     
  5. OP
    OP
    Guest

    Guest Guest

    what you mean imprince?
     
  6. KHUBBU

    KHUBBU New Member

    Joined:
    Jan 31, 2004
    Messages:
    221
    Likes Received:
    0
    Trophy Points:
    0
    Its Simple, its used instead of "space" like "Room_No" will look more appropriate and can be easily understood that its the room number, if we take "Roomno" it wud not be that much clear. and lastly we cannot give space between a variable name coz then it will be taken as different words like " Room No".

    I hope this clears ur confusion. if u have other alternative u can use it of course.
     
  7. cooljeba

    cooljeba The Photoshop Guy

    Joined:
    Jun 30, 2004
    Messages:
    606
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    On Your monitor!
    There is a reason for that. a space is taken as a blank characer and the variable name's can't have blank space b/wn them so to make it look seperate we use the underscoe' _ " since it is valid. and spaces are not allowed on the internet too.... so we all use "_"

    ..:: peace ::..
    Jeba
     
  8. Jatin_T

    Jatin_T New Member

    Joined:
    Aug 6, 2004
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Behind u with a knife-hehe-Mumbai!!
    :D
    Think cooljeba and the other guys are right..space is not accpeted in a variable name hence we use the "_" instead.
    "_" has significance in C language as system variables(of the compiler generally) start with "_"
    ^if thts not true..pls tell me..coz my Comp sirs sometimes wrong!
     
  9. NikhilVerma

    NikhilVerma Member

    Joined:
    May 12, 2004
    Messages:
    930
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    UK
    There could be another reason

    Since "_" is very small and it's position is very low...

    People can read text with "_" as easily as they can do it with " "

    People_can_read_text_with "_" as_easily_as_they_can_do_it_with " "

    It*wouldn't*work*with*any*other*character*SEE!!!
     
  10. OP
    OP
    Guest

    Guest Guest

    i also think so . its more readable then others ..
     
  11. xenkatesh

    xenkatesh Bewitched!

    Joined:
    Feb 7, 2004
    Messages:
    468
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    chennai
    Ya nikil is right..... 8)
     
Thread Status:
Not open for further replies.

Share This Page