When I compile why am I getting an unknown file size error for the last function. The array isn't defined so why is size an issue?
Code:
include "stdafx.h"
void text_test(char text[]);
void text_test2( char *ptrtext);
void text_test3( char *array);
int main()
{
text_test("hello");
text_test2("world");
text_test3("again");
return 0;
}
void text_test(char text[])
{
//char text[128];
//ptrtext=text;
printf("%s\n",text);
}
void text_test2( char *ptrtext)
{
//char 2text[];
//*ptrtext=2text;
printf("%s\n",ptrtext);
}
void text_test3( char *array)
{
char char_array[];
*array = char_array[];
printf("%s\n",char_array);
}