I think you mean something like this:
Code:
#include <stdio.h>
#include <string.h>
#define SIZE 1100
#define B10 " "
#define B50 B10 B10 B10 B10 B10
#define B100 B50 B50
#define B500 B100 B100 B100 B100 B100
#define B1000 B500 B500
int main() {
// "x" + 1098 blanks + "y"
char s[SIZE+1] = "x" B1000 B50 B10 B10 B10 B10 " y";
printf("%zu\n", strlen(s));
return 0;
}
But I don't see why you can't do something like this (even though it's runtime) :
Code:
char s[SIZE + 1] = {0};
memset(s, ' ', SIZE);
s[0] = 'x';
s[SIZE - 1] = 'y';