Question: Consider the following piece of C code inside a file for a program: extern int var 1 = 7 ; float var 2 = 1
Consider the following piece of C code inside a file for a program:
extern int var;
float var;
void ffloat var
float var &var;
other commands
The following are CORRECT statements regarding the C statements above, EXCEPT:
var is a global variable defined in the second line for all functions in this file.
var is a global variable completely defined in the first line for this and all other files that include it
var is a global pointer defined in the fourth line for all functions in this file.
var is a local variable defined in function f just to be used by f
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
