http://thelinuxlink.net/~fingolfin/pointer-guide/
Please review for accuracy, clarity, etc.
Pointer Guide
Moderators: snarkout, Patrick, dann
Pointer Guide
I'm so happy
'Cause today I found my friends
They're in my head
'Cause today I found my friends
They're in my head
Pointer Guide
Ok, but, what did you think about the content?pthread wrote:Ha, I just skimmed it... but the "shizzle" made me LMAO.
I'm so happy
'Cause today I found my friends
They're in my head
'Cause today I found my friends
They're in my head
content
It seems pretty good. Maybe when my vision isn't as blurry in the morning i will look at it again incase i see anything. Though IMO you do not need to do int baz[4] = { 1, 2, 3, 4} }; it can be int baz[] = {1, 2, 3, 4 }; and if you do need the number there it is usually in the case of growing your array in which case if you do things like for loops throughout the code it would be smart to set a define such as MAX etc. otherwise you will be chasing down various portions of code. I do understand its a pointer tutorial, but keeping good practice is something one should always display so others do not get wrong ideas 
#include <stdio.h>
#define MAX 4
int main (void)
{
int baz[MAX] = { 1, 2, 3, 4 };
for (int i = 0; i < MAX; ++i)
printf ("%d\n",baz);
return 0;
}

#include <stdio.h>
#define MAX 4
int main (void)
{
int baz[MAX] = { 1, 2, 3, 4 };
for (int i = 0; i < MAX; ++i)
printf ("%d\n",baz);
return 0;
}
--
"The complexity of software is an essential property not an accidental one."
--Brooks
"The complexity of software is an essential property not an accidental one."
--Brooks