Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   need help to wrote a c program. (http://www.go4expert.com/forums/help-wrote-c-program-t23026/)

ananya1 16Aug2010 19:19

need help to wrote a c program.
 
hello ppl..can u plz help me in writing a program to calculate the sum of two binary numbers. function prototype shud b char* add(char* n1,char* n2)

xpi0t0s 17Aug2010 17:50

Re: need help to wrote a c program.
 
This is not difficult. How far have you got and where are you stuck? How do you plan to handle numbers of different lengths, e.g. add("101","1000"); ? Also does the return value (a char*) point to memory allocated by add(), and if so who is responsible for freeing that memory?


All times are GMT +5.5. The time now is 23:31.