Global variables are ____________

Home | Discussion Forum
Taiyari24Hour

Global variables are ____________



View More Related Question

2) Which of the following is an external variable in the following C code?

 #include <stdio.h>
int func (int a)
{
int b;
return b;
}
int main()
{
int c;
func (c);
}
int d;

3) Can variable i be accessed by functions in another source file?

 #include <stdio.h>
int i;
int main()
{
printf("%d\n", i);
}

4) What is the scope of an external variable?

5) What will be the output of the following program?

 #include< stdio.h>
int main()
{
register int I = 2;
static char ch = ‘A’;
auto float j;
int k;
k = ++ch && I;
k = ++ch;
j = i-- + ++k * 2;
printf(“%d %f”, k , j);
return 0;
}

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.