I've been learning c++ for a while. Recently I saw a format of passing function parameters. It looks like this

typedef struct LNode { int data; struct LNode* next; } LNode, *LinkList; bool insertData(LinkList &L, int i){ cout << l; return false; } 

I know that LinkList is equivalent to LNode* which means a head pointer. But what does LinkList & aka LNode* & mean under the circumstances?

It seems to me that passing a LNode* aka LinkList would be enough.

12

Related questions 10116 ' operator in C/C++?">What is the '-->' operator in C/C++? 3640 What does the explicit keyword mean? 3885 What are the differences between a pointer variable and a reference variable? Related questions 10116 ' operator in C/C++?">What is the '-->' operator in C/C++? 3640 What does the explicit keyword mean? 3885 What are the differences between a pointer variable and a reference variable? 2198 C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming? 2157 What is a smart pointer and when should I use one? 3070 and #include "filename"?">What is the difference between #include <filename> and #include "filename"? 1787 What is the difference between const int*, const int * const, and int const *? 2518 What is The Rule of Three? 1076 What does T&& (double ampersand) mean in C++11? 2451 What are the basic rules and idioms for operator overloading? Load 7 more related questions Show fewer related questions

Reset to default