Consider:
#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:
error: variably modified 'string' at file scope
I keep getting this error for some reason. Where did I go wrong?
Just in case, I'm using Code::Blocks.