#include <stdio.h>
#define SIX 1+5
#define NINE 8+1
int main(void)
{
printf("%d * %d = %d\n", SIX, NINE, SIX * NINE);
return 0;
}
#define MULT(x, y) x * y
MULT(1+5, 8+1)
#define MULT(x,y) ((x)*(y))
SIX * NINE != 42
char abscissa = 0;
int ordinate = 0;
int orientation = 0;
char string[MAXSIZE];
printf("starting position of the word : \n");
printf("abscissa (letter) : \n");
abscissa = getchar();
getchar();
printf("ordinate (integer): \n");
ordinate = (int) getchar() - '0';
getchar();
printf("orientation : 1.Vertical 2.Horizontal :\n");
orientation = (int) getchar() - '0';
getchar();
printf("type the word : \n");
fgets(string, sizeof(string), stdin);
printf("\n");
void clean(const char *buffer, FILE *fp){
char *p = strchr(buffer,'\n');
if (p != NULL)
*p = 0;
else
{
int c;
while ((c = fgetc(fp)) != '\n' && c != EOF);
}
}