Question: Write a program for creating your own header file and library function?
Answer: int fact(int n) { int f=1; if(n>7) { printf("SORRy We can't find a factorial for a no>7"); return -1; } while(n) f=f*n00; return f; } now this function save as myfuns.h if u want to reuse this function in any another programme then ....... You first write this header file name with codes like # include "myfuns.h" .after that u can write ur programme and u can cal and use fact fun in this entire programme....
Question:
Write a program for creating your own header file and library function? Answer:
int fact(int n) { int f=1; if(n>7) { printf("SORRy We can't find a factorial for a no>7"); return -1; } while(n) f=f*n00; return f; } now this function save as myfuns.h if u want to reuse this function in any another programme then ....... You first write this header file name with codes like # include "myfuns.h" .after that u can write ur programme and u can cal and use fact fun in this entire programme.... Source: CoolInterview.com