help me plss in making a c program conversion units.. btw hir is the output of the program
[a] Currency
[b] Measurement
[c] temperature
tnx
help me plss in making a c program conversion units.. btw hir is the output of the program
[a] Currency
[b] Measurement
[c] temperature
tnx
What have you tried so far and what do you need help with?
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
Where´s your effort?
C Board - Announcements in Forum : General Programming Boards
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.