Pergunta de entrevista da empresa Amdocs

programs of for Finding GCD no and program for arranging array in ascending and descending order

Resposta da entrevista

Sigiloso

3 de dez. de 2015

It can be done using recursion. Following is the function which gives the gcd of two no. int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }