"&" (in this context) means "take the address of what follows". In the example you quote, it's being used because "quit" and "app" are objects, and "connect" simply wants pointers to objects.
In other cases the construct might be used on a call so that a paramater could be modified by the callee. Eg:
int width;
int height;
height = getEiffelTowerDimensions(&width);
....
int getEiffelTowerDimensions(int* width) {
*width = 100;
return 300;
}
int width;
int height;
height = getEiffelTowerDimensions(&width);
....
int getEiffelTowerDimensions(int* width) {
*width = 100;
return 300;
}
To copy to clipboard, switch view to plain text mode
Bookmarks