Click here to Skip to main content
14,741,507 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Richard MacCutchan26-May-18 5:46
mveRichard MacCutchan26-May-18 5:46 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
User 1106097926-May-18 5:53
mveUser 1106097926-May-18 5:53 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Richard MacCutchan26-May-18 6:17
mveRichard MacCutchan26-May-18 6:17 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
User 1106097926-May-18 6:21
mveUser 1106097926-May-18 6:21 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Gerry Schmitz29-May-18 7:59
mveGerry Schmitz29-May-18 7:59 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Ron Anders26-May-18 4:25
MemberRon Anders26-May-18 4:25 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
jschell26-May-18 7:33
Memberjschell26-May-18 7:33 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
lopatir26-May-18 9:51
Memberlopatir26-May-18 9:51 
how do you do: "char c[]" ?? "char[] c" wont compile, so that "type/name" logic is already broken for C/C++.

The article you read was written by someone that either referred to a different programming language, or doesn't understand the C/C++ language definitions; char* is not a type in C/C++.

For real fun, have you considered "char *c[]" ...

writing that the wrong way as "char* c[]" obviously looks, reads and is just plain wrong because that would read as an "array of pointers" when what I wanted was a "pointer to an array."

Personal style is OK, but justifying it as proper with a mistake isn't.

In short: if you prefer the look of "char* c" carry on, just remember it's a pointer, not a type.
Signature ready for installation. Please Reboot now.

GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
jschell9-Jun-18 6:35
Memberjschell9-Jun-18 6:35 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? PinPopular
PIEBALDconsult26-May-18 8:30
professionalPIEBALDconsult26-May-18 8:30 
PraiseRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
CPallini26-May-18 12:02
mveCPallini26-May-18 12:02 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
david garlisch29-May-18 17:47
Memberdavid garlisch29-May-18 17:47 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
PIEBALDconsult30-May-18 6:56
professionalPIEBALDconsult30-May-18 6:56 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chris Maunder26-May-18 8:48
cofounderChris Maunder26-May-18 8:48 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
lopatir26-May-18 9:55
Memberlopatir26-May-18 9:55 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chris Maunder26-May-18 11:27
cofounderChris Maunder26-May-18 11:27 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Member 966767828-May-18 23:02
MemberMember 966767828-May-18 23:02 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
PhM3329-May-18 4:35
professionalPhM3329-May-18 4:35 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Gary Wheeler29-May-18 4:56
MemberGary Wheeler29-May-18 4:56 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chris Maunder29-May-18 10:04
cofounderChris Maunder29-May-18 10:04 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
PhM3330-May-18 13:10
professionalPhM3330-May-18 13:10 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chris Maunder30-May-18 14:34
cofounderChris Maunder30-May-18 14:34 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Member 798912230-May-18 22:34
MemberMember 798912230-May-18 22:34 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Jon McKee26-May-18 10:28
professionalJon McKee26-May-18 10:28 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
JesperMadsen12328-May-18 21:02
MemberJesperMadsen12328-May-18 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.