Message from C, C++ talks

June 2019

— #ot

— Https://t.me/joinchat/Ci0Cak-BPuxaHdcbjab4QQ

— Plz add this number

— Hello there ,can anyone please suggest me for creating any final year I.T (tybscit) project

— 

I hav created a node like this

struct node_t {
struct nodt_t* prev;
char* word;
struct node_t* next;
};

typedef struct node_t* node;


and function to fill it like in shared library lib.so

create_node(word) {
node n = (n) malloc (sizeof(node) + sizeof(word));

n->word = word;


and similarly a append function
both inside the library lib.so

now when i use this function in main codes , its working fine ,
but when i create another function in lib.so
like
node get_array() {
node a = new_node("sam");
append(a,"another word");

print_array(a);
return a;
}

now in print_array of node a , give needed output ,
but on return the node a to main code it give random values , why

— The heap for shared library and main codes are different in malloc ??

— Hi Rose.

— Why does print return the node?

— Hi, guys

— Welcome

— Hi all

— What exciting news here?

— When do people become not new users?

— Rose knows that

— LOL