#include <stdio.h>

int power(int a,int b)
{
   int c=a;
   (b-1)&&(c*=power(a,b-1));
   return c;
}
 
void main(void)
{
   printf("%d\n",power(2,10));

}
 

 

  (b-1)&&(c*=power(a,b-1));

 

이문장이 어떻게 동작하는지 궁금합니다 ㅠㅠ

 

웹서핑 하다가 발견한 문장인데 난생 처음보는문장이라..

profile