struct ch 11

we can create functions that are constant and take pointers of structs we create so we aren't passing around values instead of reference types where we can conserve some space


c++

we can use a dereference pointer when were manipulating these structs especially when we're printing information and using rerenece function members lets say just to get the structure and then the attributes




void getdata(studnt *s)
//get the student name
cout>> "student name :"
cin.getline s->



we also have a datatype called a union
where members share a single memory location
only one can use at a time but still more are able to use this location so were saving space


when we have enumerations we have to access them by identifiers only we can definitely get the integer value when we output from the identifiers and we can compare them but we cant access them by the integers assigne

Popular posts from this blog

ch11 review silberschatz operating systems concepts essentials 2nd ed