Like any other uninitialized variable, an uninitialized pointer contains garbage (or, in other words, points to garbage).
In the shown code, head is initialized with NULL to mark the list as empty, it is responsibility of appendNode (or insertNode) implementation to allocate a fresh ListNode and make head pointing to it.
i saw ur name in top experts Great.! i've a question and i posted it in forum but i didnt get correct answer so i want too ask u that question as u r an expert please give me answer sorry for writing here i'm waiting for ur reply Thanks in advance
HOW TO WRITE SQL QUERY IN XML? please explain about it i seen an article in this forum but it not help me lot of errors in it
Actually I'm not an expert, neither of SQL nor of XML. However you may store data both in databases and in XML files, each method having its pros and cons. Typically you query for data in databases using SQL, while use XPath for finding them in XML files. If you are interested in using XML files as data storage then you may find many many tutorial available on the web, just use Google.
Veni, vidi, vici.
Last Visit: 31-Dec-99 19:00 Last Update: 24-Dec-14 12:42