Microsoft KB Archive/34306

Cannot Use end as Variable Name PSS ID Number: Q34306 Article last modified on 10-14-1988 PSS database name: S_QuickC

1.00 1.01

MS-DOS

Summary:

The following program displays incorrect output when run within the QuickC environment:

#include    int end; main {     end = 5; printf(&quot;hello&quot;); } Microsoft has confirmed this to be a problem in Versions 1.00 and 1.01. We are researching this problem and will post new information as it becomes available.

More Information:

If the program is compiled at the command line (QCL), compiled from memory to an executable, or if a program list is created, it will correctly print “hello”. To compile and run it in memory, the variable “end” must be renamed.

Copyright Microsoft Corporation 1988.