1. ## c Interview question.

Dear Friends,

I have been asked following question in the interview. I tried to find the result but couldnt achieve it.

Given:
Concentration = (ep-el) / (ep-em) * (em/el)1/3 *100.
Where "ep" and "em" are constants. Write a "C" program to determine "el" for
concentrations 0 to 100 step 10.

Is it a C precedence trick or quadratic equation problem?

Any light on this is very useful.

Have a Good Day.

2. Originally Posted by bkankur
...Given:
Concentration = (ep-el) / (ep-em) * (em/el)1/3 *100.

Your given would get a compiler error.

3. hmm... it does not look like there is any trick to it. It seems more like a test of your algebra skills, followed by understanding of how to express the resulting expression in C with care taken to choose the correct data types so as to obtain the desired result.

4. Originally Posted by bkankur
Dear Friends,

I have been asked following question in the interview. I tried to find the result but couldnt achieve it.

Given:
Concentration = (ep-el) / (ep-em) * (em/el)1/3 *100.
Where "ep" and "em" are constants. Write a "C" program to determine "el" for
concentrations 0 to 100 step 10.

Is it a C precedence trick or quadratic equation problem?

Any light on this is very useful.

Have a Good Day.
There is a similar question in K&R for temperature conversion. It's a simple question and doesn't even sound like an interview question. Simply apply loop with increment of 10.