Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
int y;
int &x = y; // x is a reference to or alias of y
namespace A_VERY_LONG_NAMESPACE_NAME {
void SomeFunc(void);
}
namespace AVLNN = A_VERY_LONG_NAMESPACE_NAME;
// I could also do this:
#define AVLNN A_VERY_LONG_NAMESPACE_NAME
int My_Very_Long_Integer_Variable_Name;
// I can define an alias like this:
#define MyInt1 My_Very_Long_Integer_Variable_Name
// I can also define an alias like this:
int &MyInt2 = My_Very_Long_Integer_Variable_Name;
char *myCharArray[MYMAXLENGTH];
char *mca = myCharArray;
They may be used the same, but internally (at the machine code level) they are very different. The symbolic constant is substituted with the actual integer address at compile time, whereas the reference variable is used as a pointer to the integer.Code:int My_Very_Long_Integer_Variable_Name; // I can define an alias like this: #define MyInt1 My_Very_Long_Integer_Variable_Name // I can also define an alias like this: int &MyInt2 = My_Very_Long_Integer_Variable_Name;
They may be used the same, but internally (at the machine code level) they are very different. The symbolic constant is substituted with the actual integer address at compile time, whereas the reference variable is used as a pointer to the integer.