Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-12-2004, 03:31 PM   #1 (permalink)
Guest
 
Posts: n/a
Default why always " _ " .. whats so good in that


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 ????
 
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 04-12-2004, 07:27 PM   #2 (permalink)
In The Zone
 
Join Date: Feb 2004
Location: Chennai
Posts: 300
Default

Good Post I must say !
By the my answer wud be, coz its Unique 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 !
__________________
Vande Mataram - Two words that became a Fiery War Cry and Electrified the nation towards Freedom. A mantra that instills a sense of Pride and belonging.
go4inet is offline  
Old 04-12-2004, 09:16 PM   #3 (permalink)
Guest
 
Posts: n/a
Default

waiting.........
 
Old 04-12-2004, 09:21 PM   #4 (permalink)
In The Zone
 
Join Date: Dec 2004
Location: Ludhiana
Posts: 227
Default

Quote:
Originally Posted by go4inet
Good Post I must say !
By the my answer wud be, coz its Unique 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 !
haha kya baat hai plz reply don't spoil ur time and knowledge
__________________
जय माता दी
--------------------------------------------------
It\'s Ok.... u r the best ,,,, i can speak more lie ,if u r happy with it,,, WWW.GOOGLE.COM is BIG BOSS !!!
imprince is offline  
Old 04-12-2004, 09:38 PM   #5 (permalink)
Guest
 
Posts: n/a
Default

what you mean imprince?
 
Old 04-12-2004, 10:16 PM   #6 (permalink)
In The Zone
 
KHUBBU's Avatar
 
Join Date: Jan 2004
Posts: 221
Default

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.
__________________
Brand new Day!
KHUBBU is offline  
Old 04-12-2004, 10:30 PM   #7 (permalink)
The Photoshop Guy
 
cooljeba's Avatar
 
Join Date: Jun 2004
Location: On Your monitor!
Posts: 562
Default

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
cooljeba is offline  
Old 04-12-2004, 11:02 PM   #8 (permalink)
Broken In
 
Join Date: Aug 2004
Location: Behind u with a knife-hehe-Mumbai!!
Posts: 142
Default


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!
__________________
If u think u r right...u r a bad thinker!
Jatin_T is offline  
Old 05-12-2004, 09:48 AM   #9 (permalink)
Alpha Geek
 
NikhilVerma's Avatar
 
Join Date: May 2004
Location: India
Posts: 930
Default

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!!!
NikhilVerma is offline  
Old 05-12-2004, 11:09 AM   #10 (permalink)
Guest
 
Posts: n/a
Default

i also think so . its more readable then others ..
 
Old 05-12-2004, 12:13 PM   #11 (permalink)
Bewitched!
 
xenkatesh's Avatar
 
Join Date: Feb 2004
Location: chennai
Posts: 468
Default

Ya nikil is right..... 8)
__________________
Keep your friends close and enemy CLOSER!!!
Ragnarok Online: One World, One Million Possibilities.. :)
xenkatesh is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clinton
- by Charan
- by icebags
- by ico
- by gohan89

Advertisement




All times are GMT +5.5. The time now is 11:15 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2