what is a good rule of thumb for sizing a struct in c/c assuming that the struct is optimally set up?
-
A good rule of thumb for sizing a struct in c/c assuming that the struct is optimally set up is count all the bytes of the data in the struct.Rule:In math rule refers a numerical pattern is a sequence of numbers that has been created based on a formula or rule called a pattern ruleGiven,Here we need to find a good rule of thumb for sizing a struct in c/c assuming that the struct is optimally set up.According to the rule of thumb, the count all the bytes of the data in the struct.and then we need to find the nearest power of 2, 4 or 8 based on the largest Data Type in your struct.So, if the total number of bytes is larger than that power, then the struct will be the next power in size.To know more about Rule here.https://brainly.com/question/28105637#SPJ4