obj function hello()



#include <stdio.h>

obj function hello(){
struct obj = { char *data = 'hello'}
obj.add = obj_add(obj);
return obj;
}

void function obj_add(obj){
obj function add(value){
obj.data += value;
return obj;
}
}

void main(){
test = hello();
test.add('world');
printf(test.data);
}

I don't know much c and i was hoping the code above was pointing out
what i am trying to do ?

.