Yup, that was what i intended. Good point though cos I neva took into consideration a broken up string...
Thanks for all the help.
Type: Posts; User: Evilelmo
Yup, that was what i intended. Good point though cos I neva took into consideration a broken up string...
Thanks for all the help.
Thank you. I'll store the char directly into str2 as you suggested.
I understood what you said about the memory location being invalid but why does this function work when it is called upon the...
When calling the following function for the first time, the string it prints out is some weird ANSII characters. However, when I call on the function subsequently with the exact same variables, it...
Thanks for the help Cela and Sebastiani. Really appreciate it.
I think the book was trying to illustrate what you guys were showing me but with the numbered ptr's and its poor sequencing I got all...
I apologise for not finishing the first post.
1) what is the difference between ptr1 pointing and ptr1->link pointing? why the command "ptr1 = ptr1->link;"
2) why is it necessary to allocate...
Hi !
I'm having difficulty understanding this example from a C programming book.
#include <stdio.h>
typedef struct NodeTag {
int data;
struct NodeTag *link;