can "endl" be changed to end line twice?

Pages: 12
ran an older dos compiler. goes back a ways.

What are you saying? Your first two sentences are borderline nonsensical.

And what is the point of the second line? Are you surprised that the given statement works?
int o = 20; // global before int main() does work
Last edited on
closed account (1CfG1hU5)
could you quote when you post?
As you requested.
closed account (1CfG1hU5)
doubted "int o = 20;" before main would work. that is correct.

why are you asking about a proof done and agreed to. that the integer definition does work.

go find something else to do.
Last edited on
I'm not asking about the fact that the given statement works. I'm trying to understand your point.
closed account (1CfG1hU5)
#define doesn't use a ;
doubted an int could be declared before main

#define is not a statement read by the compiler as it is a preprocessor directive. This differs from declaring a global variable, which is a compiled statement. Each follows their own syntax.

I'm not certain how you took this to imply that you couldn't declare an integer before main, but as I suppose you have noticed it is certainly possible.
closed account (1CfG1hU5)
whatever a #define is called, someone posted don't use a ";" with #define or #defines.
and I did not believe that integers could be defined above main. i now know differently.
i did not imply nondeclaration of integers before main. i now know i can. your argument
is tiring, this is distant from the topic, and i am very tired.
Topic archived. No new replies allowed.
Pages: 12