Adobe Interview Question
Testing / Quality AssurancesCountry: United States
Interview Type: Phone Interview
To Qs2 we are getting a compilation error : "Expression not a constant integer expression"
So Ans must be D. None.
Qs3 : Anyone ?
float is correct <---
{
int main()
{
float fh;
cout << "Hello World" << endl;
switch(fh)
{
case 12:
cout<<" How are you ";
break;
}
return 0;
}
}
Error while compinling
main.cpp: In function 'int main()':
main.cpp:9:15: error: switch quantity not an integer <-----
switch(fh)
regards
udzial dot com
Answer is c float.
- Abhishek February 07, 2012All other are supported by switch