Message from C, C++ talks

June 2019

— #ot

— Https://

— 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

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

n->word = word;

and similarly a append function
both inside the library

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

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