Hi Guys, can you please point out what could be the issue with code below. I guess I m doing something wrong with pointers maintenance however from my perspective this code should be ok.
What I am...
Type: Posts; User: prihod
Hi Guys, can you please point out what could be the issue with code below. I guess I m doing something wrong with pointers maintenance however from my perspective this code should be ok.
What I am...
Hi Everyone,
I am stuck at removing element from linked list. The error I get while compiling under linux is:
Error I get from windows is:
The structure and function that I use to delete...
The thing is that input size is arbitrary, I do not know it before hand. Should I be reallocating memory before each new item added to string ?
Such as:
string=(char *)malloc(sizeof(char));...
Hi, the question I am about to ask is a part of bigger home work task. However I am stuck at this and do not know how to proceed further. My task is to receive input from the user, the input is...
Excellent, the code is following:
#include <stdio.h>
#include <stdlib.h>
typedef struct node *link;
struct node {
char data;
I checked it, it will return NULL in FindNode function only if node that I am looking for is not located. However if I substitute value of a node that exists the lets say, in the middle of the list,...
Hi Everyone, I have been playing around with linked lists and I got stuck with one issue. The issue is following:
lets say you have two structures and couple of functions, such as:
typedef...