Click here to Skip to main content
15,891,704 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.

 
PraiseRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
CPallini26-May-18 11:02
mveCPallini26-May-18 11:02 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
david garlisch29-May-18 16:47
david garlisch29-May-18 16:47 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
PIEBALDconsult30-May-18 5:56
mvePIEBALDconsult30-May-18 5:56 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chris Maunder26-May-18 7:48
cofounderChris Maunder26-May-18 7:48 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
lopatir26-May-18 8:55
lopatir26-May-18 8:55 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chris Maunder26-May-18 10:27
cofounderChris Maunder26-May-18 10:27 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Member 966767828-May-18 22:02
Member 966767828-May-18 22:02 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
PhM3329-May-18 3:35
professionalPhM3329-May-18 3:35 
My 2 cents, I prefer
C++
char* c;
too, as I've learned years ago.

To quote Wikipedia and what I've learned (Pointers section) : "A pointer is a data type that contains the address of a storage location of a variable of a particular type."

Nevertheless, this same Wikipedia section points out that writing it is a matter of style :
C++
char* c;
C++
char * c;
or
C++
char *c;
All right for everyone Smile | :)
Not mentioning the confusing writing for arrays of pointers...

So the type of "char*" is a "pointer on a char".
The type of "int*" is a "pointer on an int".
And so on...
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Gary Wheeler29-May-18 3:56
Gary Wheeler29-May-18 3:56 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chris Maunder29-May-18 9:04
cofounderChris Maunder29-May-18 9:04 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
PhM3330-May-18 12:10
professionalPhM3330-May-18 12:10 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chris Maunder30-May-18 13:34
cofounderChris Maunder30-May-18 13:34 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
kalberts30-May-18 21:34
kalberts30-May-18 21:34 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Jon McKee26-May-18 9:28
professionalJon McKee26-May-18 9:28 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
JesperMadsen12328-May-18 20:02
JesperMadsen12328-May-18 20:02 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Grand Chain28-May-18 21:13
Grand Chain28-May-18 21:13 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Jonas Hammarberg28-May-18 21:53
professionalJonas Hammarberg28-May-18 21:53 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
SawDid28-May-18 23:34
SawDid28-May-18 23:34 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
kalberts29-May-18 1:23
kalberts29-May-18 1:23 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
SawDid29-May-18 9:32
SawDid29-May-18 9:32 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Bob100028-May-18 23:39
professionalBob100028-May-18 23:39 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
tobofopo29-May-18 1:10
tobofopo29-May-18 1:10 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
PIEBALDconsult30-May-18 6:02
mvePIEBALDconsult30-May-18 6:02 
AnswerRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Hans Salvisberg29-May-18 1:15
Hans Salvisberg29-May-18 1:15 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Member 1014067829-May-18 1:47
Member 1014067829-May-18 1:47 

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.