Question: 1. Which exemplifies C's weak type checking? (a) the ability to assign pointers of any type to/from a (void *) variable without warning (b) the





1. Which exemplifies C's weak type checking? (a) the ability to assign pointers of any type to/from a (void *) variable without warning (b) the requirement that all variables be declared before being used (c) the static nature of variable typese.g., once declared an int, always an int (d) the fact that data type widths (e.g., for ints) can be dependent on the platform 2. Consider the following macro definition and variable declaration #define F00(x) (2 * x-x) int val 10; 5)? What is the value of the expression F00 (val (a) 15 (b) 20 (c) 25 (d) 35 3. Consider the following variable and function definitions int g = 10; int q30 static int g = 5; return ++g; int q40 [ extern int g; return ++g; int q5O int g = 1; return ++g; What is the value of the expression q3O (a) 32 (b) 34 (c) 38 (d) 40 30 q4) q4) q5 q5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
