Structures in C ++ *

Probably a dumb question, but I'm just curious. What do the variables * temp and * perm mean in this structure?

struct process {
    int id;
    char name;
} *temp, *perm;
+4
source share
1 answer

Short version

struct process {
    int id;
    char name;
};

process *temp;
process *perm;

This declares a process with a name of type struct and then declares two variables that are pointers to the processing of structures.

+10
source

Source: https://habr.com/ru/post/1662452/


All Articles