I'm not sure why I get this error...
how do I assign the value of name inside the structure?Code:typedef struct pcb {
char name[11];
int pclass;
int priority;
} pcb;
int main() {
pcb *new_pcb = allocate_pcb(); //allocates memory for structure
new_pcb->pclass = 1;
new_pcb->priority = 2;
new_pcb->name = "newpcb1"; //error on this line : Lvalue required
}