Question: What memory segment is the static function pointer in the code below stored in? void good_function ( const char *str) { } int main (
What memory segment is the static function pointer in the code below stored in?
void good_function(const char *str) { } int main(int argc, char *argv[]) { static char buff[BUFFSIZE]; static void (*funcPtr)(const char *str); funcPtr = &good_function; strncpy(buff, argv[1], strlen(argv[1])); (void)(*funcPtr)(argv[2]); }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
