In this line of code: Node* insert(Node *head,int data)  What is the difference between Node* insert and Node *head? Are they both pointers? And which is better?
I've recently decided that I just have to finally learn C/C++, and there is one thing I do not really understand about pointers or more precisely, their definition.  How about these examples:   int* test; int *test; int * test; int* test,test2; int *test,test2; int * test,test2;   Now, to my understanding, the first three cases are all doing the same: Test is not an int, but a pointer to one.  The second set of examples is a bit more tricky. In case 4, both test and test2 will be pointers to an int, whereas in case 5, only test is a pointer, whereas test2 is a "real" int. What about case 6? Same as case 5?
What are all the marriages and child relationships following the final chapter? In the last chapter of Naruto, some characters got married, and some of them had kids. What is the entire husband-wife-kids set? The gravitational force on your body, called your weight, pushes you down onto the floor. $$W=mg$$ So, what is the weight equation through general relativity? How to inject keystrokes via a shell script? I'm trying to inject keystrokes into the input daemon so as to simulate typing from a Bash script. Is this possible, and if so, how can I make it happen? Is there any other way to do a clean install withot formatting /home? I think my Ubuntu is a bit broken from messing around with it.  Unfortunately during installation, I did not make a separate partition for /home. Now I need to re-install but want to keep my music and films.  Any ideas... What was the Historical Precursor for .NET Attributes? What languages or platforms influenced the .NET 1.0 Team to build-in the concept of Attributes from the very start? Was this an Aspect-Oriented thing? Serialization? or something else? I was still in VB6-land at this time, and never used any of the pre-1.0 .NET versions. How do I programmatically determine operating system in Java? I would like to determine the operating system of the host that my Java program is running programmatically (for example: I would like to be able to load different properties based on whether I am on a Windows or Unix platform). What is the safest way to do this with 100% reliability? A loss and gain problem This is a very simple but confusing puzzle.  A customer buys goods worth $200$ rupees from a shop. The shopkeeper selling these goods makes zero profit from this purchase.  The lady gives him a $1000$ rupee note.  The shopkeeper has no change, so he goes next door to another shopkeeper to get change for the $1000$ rupee note. He keeps $200$ for himself and returns $800$ to the customer.  Later, the second shopkeeper from next door comes back with the $1000$ rupee note with a stamp on it saying "counterfeit" and takes his money back.  How much loss does the first shopkeeper face? What I get:  host:~ user$ cat example.txt some texthost:~ stas$   What I want to get:  host:~ user$ cat example.txt some text host:~ stas$   Is there a way I can make cat behave like this?  I'm using bash on Mac OS X. Do small title edits constitute trivial edits? Why are integer literals with leading zeroes interpreted strangely? What is a historical lock, and what is it used for? Historical locks are sometimes applied to questions.   What is a historical lock? What is the purpose of a historical lock? How are questions affected by historical locking? When is it appropriate to lock a question for historical reasons?  When is it not appropriate? How do I request a historical lock for a question? What should I do if I notice a serious problem with a historically-locked question or one of its answers? How do I access the terminal without logging in to the desktop? Sweave.sty causing error in verbatim environment? I have a question related to deletion of strings that appear at the n+2 position after the matched string which is at position n using awk for multiple files. I am able to print it using the command:   awk -F '/radius-server/{nr[NR+4]}; NR in nr' *   Where the matched string is radius-server.  Since I'm not too familiar with  awk I would appreciate it if someone could help me  delete this line in place , that would mean that I want the files to be modified and saved after the deletion is done.  An example scenario is below - file 1 which is unmodified    radius-server dz7HQQH4EqT5 1645-1646  !  oj5icqh1dGpSK  !    alias exec t telnet  alias exec sis show interface status  !   file 2, after modification is -  radius-server dz7HQQH4EqT5 1645-1646 ! ! alias exec t telnet alias exec sis show interface status !   I understand that I can do a pattern matching method using sed -i '/pattern/d' to remove it but that is not what I want as the values change from file to file. Any help would be much appreciated. Convert IEnumerable to DataTable Can I check iPhone, iPad, Watch battery on Mac? My goal is to have battery status of other Apple device on my Mac (preferably on menubar). I'd like to have a glimpse of the battery status of my iPhone, iPad, Watch, and Airpods.  I'm a user of Bitbar and iStat menu, but I haven't found any widgets can wirelessly check other Apple device's battery status.  What I know is that I can click the Wi-Fi icon on menu bar and it will show my iPhone battery status. To show the percentage, I have to option + click the Wi-Fi icon and hover over my mouse on the iPhone hot spot section. It's pretty clunky, but I guess at least the API is there.  I am also open to third party apps which can let me see battery status across devices. $D_8$ as a derived subgroup Every undergraduate student knows that there are (exactly) two non-abelian groups of order 8: Dihedral ($D_8$) and Quaternion ($Q_8$). The group $Q_8$ has many interesting properties; simple of them are: it has unique element of order $2$, all subgroups are normal, etc. A property, which is strange and not obvious, the group $Q_8$ has, is that there is no group $G$ such that $G/Z(G)$ is isomorphic to $Q_8$. On the other hand, $D_8$ has no such property; there are (infinitely many) groups $G$ such that $G/Z(G)$ is isomorphic to $D_8$; example - $D_{16}$.   The question, I would like to ask, is related to a property of $D_8$, which is not shared by $Q_8$. There are (infinitely many) groups whose derived subgroup is $Q_8$; example- $SL_2(3)$. For groups $G$ of order &lt;100, one can check on GAP that $D_8$ is not a derived subgroup of any group. The natural question is then:  Question 1: Does there exist a finite/infinite group whose derived subgroup is equal to $D_8$?  Question 2: Does there exist a finite/infinite group whose derived subgroup is equal to (general) dihedral group $D_{2n}$ of order $2n$ ($n&gt;2$)? How do I prevent directories mounted with 'bind' from appearing on 'Devices' on nautilus? I have these lines in the fstab   # binds /media/DataNtfs/Music           /home/can/Music                  none    rw,bind  /media/DataNtfs/Pictures        /home/can/Pictures               none    rw,bind  /media/DataNtfs/Downloads       /home/can/Downloads              none    rw,bind  /media/DataNtfs/Documents       /home/can/Documents              none    rw,bind  /media/DataNtfs/Backups         /home/can/Backups                none    rw,bind  /media/DataNtfs/Notes           /home/can/Notes                  none    rw,bind  /media/DataNtfs/Other           /home/can/Other                  none    rw,bind  /media/DataNtfs/Packages        /home/can/Packages               none    rw,bind  /media/DataNtfs/Photos          /home/can/Photos                 none    rw,bind  /media/DataNtfs/Videos          /home/can/Videos                 none    rw,bind  /media/DataNtfs/WorkSpace       /home/can/WorkSpace              none    rw,bind Making mathematical animations with Mathematica With proper nouns, we don't use the except for river names, newspaper names, etc.  I want to know why we use the with White House. I mean, under which rule can we categorize it? What could other similar examples for that rule be?