You are viewing a single comment's thread. Return to all comments →
but we can't edit the code.So how to write #define headhead head????
yes, we can't edit the main function but do write what I have said earlier inside the insertNodeAtHead function.
I am getting below error when I added #define
solution.cs(67,0): error CS1032: Cannot define or undefine preprocessor symbols after first token in file
Compilation failed: 1 error(s), 0 warnings
Line which I added
static SinglyLinkedListNode insertNodeAtHead(SinglyLinkedListNode llist, int data)
#define headhead head