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;
-
1syntax diagrams! It's variables of type of pointer to process object (struct), obviouslySwift - Friday Pie– Swift - Friday Pie2016年11月30日 19:07:44 +00:00Commented Nov 30, 2016 at 19:07
-
See cplusplus.com/doc/tutorial/structuresSerg– Serg2016年11月30日 19:11:20 +00:00Commented Nov 30, 2016 at 19:11
1 Answer 1
Short version of
struct process {
int id;
char name;
};
process *temp;
process *perm;
This declares a struct type named process and then declares two variables which are pointers to process structs.
answered Nov 30, 2016 at 19:10
NineBerry
28.8k4 gold badges69 silver badges104 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-cpp