#define N 6
#include<stdio.h>
#include "itoa_recursive.c"
#include "rvs.h"
#include "ptl.h"
main()
{
int i=0;
extern void itoa;extern void rvs;extern void ptl;
int m=235;char number[N];
itoa(m,number,i);
rvs(number);
ptl(number);
gethcar();
}
program itoa_recursive.c is for converting integer to character array with the use of recursion.And the main program is for testing whether this has happened.rvs.h is a header created by me which has a function which reverses an array.ptl is a header created by me which has a function which prints out the contents of an array given the pointer to the array.i am only getting the error C:\jink\dev_cpp\k&r4-12.c In function `main':
11 C:\jink\dev_cpp\k&r4-12.c void value not ignored as it ought to be
12 C:\jink\dev_cpp\k&r4-12.c void value not ignored as it ought to be
13 C:\jink\dev_cpp\k&r4-12.c void value not ignored as it ought to be
All the three functions are not returning any value to any variable still i have that error.

New Topic/Question
Reply



MultiQuote






|