ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What does this function do exactly ? int power(int x, int y){ int result=0; for(int i=1; i<=y; i++) result *= x; return result; }

user-image
تم إضافة السؤال من قبل هاشم المشارقة , Key Account Manager , Advanced United Systems Ltd. ( A member of Taj Holding Group)
تاريخ النشر: 2016/01/16

Result in this case will be0 as the initialized value of Result is0

Shenjith  Murali
من قبل Shenjith Murali , Software Engineer , FACTS COMPUTER SOFTWARE HOUSE

the function will return value of result =0

Julfkar  Moh Umar
من قبل Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited

It will return0 .Because result initial value is zero.

Reshma Gomez
من قبل Reshma Gomez , Senior Analyst , Accenture India LTD

The function does finding the yth power of x.However since the result is initialized to zero the value will be zero always.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟