Microsoft KB Archive/58682

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:25, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q58682 to Microsoft KB Archive/58682 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

C 6.00/QC 2.50 Support Long/Unsigned Long for Switch or Case PSS ID Number: Q58682 Article last modified on 01-15-1991 PSS database name: S_QuickC

2.50

MS-DOS

Summary:

Microsoft C Version 6.00 and QuickC Version 2.50, in accordance with the ANSI-draft standard, now support both long and unsigned long values in switch expressions and case constants.

Previously, only char and int types were allowed in switch statements.

Code Sample

  1. include <stdio.h>

unsigned long SwtchVal = 4L ;

void main(void) { switch( SwtchVal ) case 4L : printf(" SwtchVal = %ld ", SwtchVal ) ; }

Copyright Microsoft Corporation 1991.