I want user defined function i.e.power()function programn using function concept in c language.

jonsca commented: Nope -1

Maybe this will help you get started :

#include <stdio.h>
int power(int base, int exp){
  //logic goes here
}
int main(){
  int res = power(2,10); //res = 1024
  printf("%i",res);
  return 0;
}
commented: Putting a C twist on it I see. +4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.