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 var1=7;
float var2=1.4142;
void f1(float var3){
float *var4= &var3;
//...other commands
The following are CORRECT statements regarding the C statements above, EXCEPT:
var2 is a global variable defined in the second line for all functions in this file.
var1 is a global variable completely defined in the first line for this and all other files that include it.
var4 is a global pointer defined in the fourth line for all functions in this file.
var3 is a local variable defined in function f1, just to be used by f1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!