(char*& Content) ?
-
Hi guys Can any one temme what does this mean void AddtoNode(char*& Content, const char*& Buffer); I am not getting this char*& part. Is it pointer to pointer or wt. Thanks
-
Hi guys Can any one temme what does this mean void AddtoNode(char*& Content, const char*& Buffer); I am not getting this char*& part. Is it pointer to pointer or wt. Thanks
I believe it is a "reference to a pointer."
-------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
-
I believe it is a "reference to a pointer."
-------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
but what does it mean....?
-
I believe it is a "reference to a pointer."
-------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
but what does it mean ?
-
but what does it mean ?
A reference for something means that it can be used anywhere the original can be used, AND any changes to the reference are reflected in the original. So for instance:
void func( int a, int& b )
{
a ++;
b ++;
}int foo = 5, bar = 5;
func( foo, bar );
In this example,
foo
will remain unchanged because it was passed by value to the function, however,bar
will reflect the increment because it was passed by reference.-------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
-
Hi guys Can any one temme what does this mean void AddtoNode(char*& Content, const char*& Buffer); I am not getting this char*& part. Is it pointer to pointer or wt. Thanks