09-19-2024, 12:49 PM
Quote:PRINT a$; b$; c$; <---- This statement will get translated as if it was actually:The reason for this behavior may/could be that in C/C++ every line must end with a semicolon - except main(), loops or the function definition.
PRINT a$;
PRINT b$;
PRINT c$;
Each of those get printed first to a temp string (for formatting and word wrap and all that), and as you can see from the above, that's a good number of lines.
Code: (Select All)
//Deklaration
int blabla(int);
int main(void)
{
int feld[10];
for (int i = 1; i <= 10; i++)
{
feld[i] = i;
printf("%3d", feld[i]);
}
return(0);
}
//Definition
int blabla(int i)
{
. . .
}