a) Whole source file in which it is defined b) From the point of declaration to ...
View QuestionWhat is the scope of an external variable?
a) Whole source file in which it is defined b) From the point of declaration to the end ...
View Question
What will be the output of the following C code (after linking to source file having definition of ary1)?
#include < stdio.h >
int main()
{
extern ary1[];
printf(“%d\n”, ary1[0]);
}
What will be the output of the following C code (after linking to source file having definition of ...
View Question
What will be the output of the following C code (without linking the source file in which ary1 is defined)?
#include < stdio.h >
int main()
{
extern ary1[];
printf(“scope rules\n”);
}
What will be the output of the following C code (without linking the source file in which ary1 ...
View Question
What will be the output of the following C code?
#include < stdio.h >
int i;
int main()
{
extern int i;
if (i == 0)
printf(“scope rules\n”);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
double var = 8;
int main()
{
int var = 5;
printf(“%d”, var);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int main()
{
printf(“%d”, d++);
}
int d = 10;
What will be the output of the following C code? #include < stdio.h ...
View Question
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;
Which of the following is an external variable in the following C code? #include ...
View QuestionGlobal variables are ____________
a) Internal b) External c) Both Internal and External d) None of the mentioned Answer: b
View QuestionFunctions in C are always _________
a) Internal b) External c) Both Internal and External d) External and Internal are not valid terms for functions
View Question