[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
CppTemplateMetaprogramming » Os400StrPgmMnu » Os400ChgOwn » TCPIP » CppUtilityH » CppConstructor » JavaScript » WhatLinksHere » Real time system » cppint

int

A data type (and thus a keyword) that can hold a single whole number. If you assign it to a broken number, this value gets rounded down. Your compiler should give you a warning then, as in the example below.

  1. include <assert.h>
int main(int argc, char* argv[]) { const int myValue = 12; const int myBrokenValue = 12.9; assert(myValue==myBrokenValue); return 0; }


Topic links



last edited (August 7, 2005) by bilderbikkel, Number of views: 15699, Current Rev: 1

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Site Management by Lars Hagelin at Kontantkort.se.