HITEQUEST
technical interview Q & A for high-tech professionals
 
 
Interview Questions
Electronics Hardware
Computer Software
General questions
Brain teasers

Resources
Resume and interview
How to get a job in Silicon Valley
How much are you worth on market?
Do you need an agent?

Break time stories
Tomato company

About Hitequest
About Hitequest
Join us
Home page

 
 
 
 
 
 
   

 
=Computer Software Questions=

     
   

Q:
Use recursion to write a function of factorial.
 
 
 
 
 
 
 
 

A:

int fuct (int  n) 
 { 
    n=(n<0)? -n: n; 
    if (n>1) 
      return  n * fuct (n-1); 
    else 
      return 1; 
   }