#include <stdio.h>
#include <string.h>
const int STRING_SIZE = 40;
typedef char string[STRING_SIZE];
char typeInput(string message);
int main()
{
typeInput("Hi my name is Sean");
}
char typeInput(string message)
{
printf(" %s", message);
}
error: variably modified 'string' at file scope i keep getting this error for some reason. Where did I go wrong?
EDIT: just in case i'm using codeblocks