|
Re: Global Constants
Quote:
|
Originally Posted by Darkman_X000
In C++ you can declare global constants using const varType varName = initialValue; Is this acceptable in C?
Please clarify!!!
|
Please read the pdf document MPLAB® C18 C COMPILER USER’S GUIDE which was included on the CDROM that had MPLAB. All your questions will be answered.
Beware comparing C++ with C. C has been around since 1974 and has changed very little in all these years. ANSI complient C is a standard and C++ is a different animal.
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|