Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://www.facebook.com/AminproPastebin
- (i)
- 1. Illegal, var can;t store a pointer.
- 2. Legal
- 3. Legal, both have the same type of carible (pointer).
- 4. Illegal, You can only free memmory location that is type of pointer.
- (ii)
- struct Node * createNode(char c){
- temp = (struct node*)malloc(sizeof(struct node));
- struct Node *temp;
- temp->c=c;
- temp ptr=NULL;
- return (temp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement