shamali mangle
8 years ago

int main()
{
int x = 10;
static int y = x;

if(x == y)
printf("Equal");
else if(x > y)
printf("Greater");
else
printf("Less");

getchar();
return 0;
}

A. Equal

B. Greater

C. Less

D. Compile Error

Answer: Option D

Solution (By Examveda Team)

error: initialize element is not constant
static int y = x;

This Question Belongs to User Ask Question >> Miscellaneous

Join The Discussion

Related User Ask Questions