ULTIMATE QUESTION.
Name:
Anonymous
2007-09-16 16:33
ID:megCKdPE
(1) char* string_ptr;
(2) char *string_ptr;
(3) What the fuck does ptr mean?
Name:
Anonymous
2007-09-16 16:35
ID:megCKdPE
1. Clarity 4 realz
Name:
Anonymous
2007-09-16 16:46
ID:6CzfdJRe
it's shorthand for "puter" which is an abbreviation of "computer"
Name:
Anonymous
2007-09-16 16:49
ID:dbKC/rhY
i thought puter was wetback speak for faggot
Name:
Anonymous
2007-09-16 16:53
ID:ORF0UaRc
char_ptr string;
Name:
Anonymous
2007-09-16 17:00
ID:dbKC/rhY
pointer is an imaginary reference to a location in a register. ... I think ...
Name:
Anonymous
2007-09-16 17:11
ID:RBz7Yfe/
char* text;
RGWEAD IVRT.
Name:
Anonymous
2007-09-16 17:12
ID:RBz7Yfe/
O FUCK
...............
..............
Name:
Anonymous
2007-09-16 17:12
ID:RBz7Yfe/
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
Name:
Anonymous
2007-09-16 17:13
ID:RBz7Yfe/
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
Name:
Anonymous
2007-09-16 17:13
ID:RBz7Yfe/
>>10
>>10
>>10
THIS IS THE WAY
Name:
Anonymous
2007-09-16 17:23
ID:Heaven
>>1
none of the above because of shitty naming convention with underscores
Name:
Anonymous
2007-09-16 17:27
ID:RBz7Yfe/
>>12
thats perfectly good C style, but putting "ptr" in the name is certainly not.
C is not java, do not fucking use CamelToe in C.
Name:
Anonymous
2007-09-16 17:55
ID:2Gb6LMLn
(2) char *string_ptr;
What is the right way to create two pointers to chars?
1. char* one, two
2. char *one, *two
That settles with which part the asterisk should go.
Also I agree with
>>13
Name:
Anonymous
2007-09-16 17:57
ID:2Gb6LMLn
>>15
I forgot the semicolons but you get the point.
Name:
Anonymous
2007-09-16 18:08
ID:Ftfjbf+q
>>14
Declaring more than one variable on the same line considered harmful.
Name:
Anonymous
2007-09-16 18:35
ID:Heaven
>>16
You are wrong. Formal proof:
double x, y, z;
vs
double x;
double y;
double z;
Name:
Anonymous
2007-09-16 18:35
ID:Heaven
char*one,*two; or GTFO
Name:
Anonymous
2007-09-16 18:37
ID:megCKdPE
>>13
You'll find the naming convention "ptr" used a lot in K&R.
Name:
Anonymous
2007-09-16 18:46
ID:Heaven
Name:
Anonymous
2007-09-16 18:47
ID:megCKdPE
>>20
It's also used in O'Reillys "Practical C Programming". Suck my balls.
Name:
Anonymous
2007-09-16 18:53
ID:RBz7Yfe/
>>19
You'll find K&R is full of SHIT, as far as I'm concerned.
Name:
Anonymous
2007-09-16 18:54
ID:RBz7Yfe/
>>16
not knowing C and declaring things are harmful considered harmful.
Name:
Anonymous
2007-09-16 19:31
ID:Gogw3xos
Name:
Anonymous
2007-09-16 19:33
ID:Heaven
Name:
Anonymous
2007-09-16 21:34
ID:RMUzQbry
Newer Posts