#1. Given static void fubar( int a ) { void (*b) (int) = fubar; static int c; ..
ID: 3843008 • Letter: #
Question
#1. Given static void fubar( int a ) { void (*b) (int) = fubar; static int c; ... } When this function is called, identify which area of the C Runtime Environment each of the following will be allocated and its scope or visibility. Area of Runtime Env. Scope/Visibility (Global/File/Function) a ____________ ___________ b ____________ ___________ c ____________ ___________ fubar ____________ ___________ Where b is pointing ____________ If the function above is called 15 times, indicate how many times will b be initialized to fubar? _________ Using the Rt-Lt Rule, declare fubar to be a pointer to a function that takes a pointer to a char and returns a pointer to an array of 24 elements where each element is a pointer to a struct foo. #2. a) Convert 107.87510 to binary fixed-point and single
#1. Given static void fubar int a void b) (int) fubar, static int c; When this function is called, identify which area of the CRuntime Environment each of the following will be allocated and its scope or visibility. Area of Runtime Env Scope/Visibility (Global/File/Function) fubar Where b is pointing If the function above is called 15 times, indicate how many times will b be initialized to fubar?Explanation / Answer
a area of runtime environment with in fubar function scope/visiblity with in fubar function
b area of runtime environment with in fubar function scope/visiblity with in fubar function
c area of runtime environment with in file .. scope/visiblity with in file
fubar area of runtime environment of fubar function scope/visiblity of fuber with in file
with in file
b pointing it stores the address of the function and it is pointing towards the fuber fucntion
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.