The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to replace any char with newline char. mightysam Shell Programming and Scripting 5 09-18-2008 05:15 PM
int open(const char *pathname, int flags, mode_t mode) doubt... csnmgeek UNIX for Dummies Questions & Answers 2 11-15-2007 10:41 AM
char c = 882 useless79 High Level Programming 1 07-30-2007 02:16 AM
Reference to a const arun.viswanath High Level Programming 1 09-05-2005 03:20 AM
diff 2 files; output diff's to 3rd file blt123 Shell Programming and Scripting 2 05-28-2002 08:29 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-05-2005
Registered User
 

Join Date: Aug 2005
Posts: 45
diff b/w char const in C/C++

hi,
what is the difference b/w char in C and C++.and give me the examples.
Thanks...
sarwan
Reply With Quote
Forum Sponsor
  #2  
Old 10-05-2005
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 979
I'm not sure what you mean. Are you asking about variable declarations, like "const char c" vs "char const c", or character constants like 'L' ?
Reply With Quote
  #3  
Old 10-06-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,274
It's an interview question that misguided IT managers use to impress/confuse prospective applicants. IMO anyway.

The answer is explained here:

http://www.eskimo.com/~scs/C-faq/q8.9.html
Reply With Quote
  #4  
Old 10-10-2005
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 979
[edit] I got it backwards! Huh. n/m
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0