Strucs.
public c v1 · immutable/*Playing with structures, pointers, and malloc*/#include <stdio.h>#include <stdlib.h>struct book{ char name[100]; char author[100]; int year;}; int main(){ struct book *first; first = (struct book*) malloc(sizeof(struct book)); first->name = "An Introduction to Programming for Hackers"; first->author = "lovepump"; first->year = 2004; printf("Name of the book: %s\n" "Author: %s\n" "Published in: %d", first->name, first->author, first->year);}