Changes between Version 35 and Version 36 of ResumedC
- Timestamp:
- Sep 1, 2009, 5:03:09 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ResumedC
v35 v36 58 58 ==== Void ==== 59 59 * In a function declaration means that the function returns no value 60 * When used in a pointer declaration (called ''pointer to void''), void defines a generic pointer, so it returns an address, it is commonly used when a function is called with differents types of data, and also very used on these ways:60 * When used in a pointer declaration (called ''pointer to void''), void defines a generic pointer, so it returns an address, it is commonly used when a function is called with differents types of data, specially pointers of types differents, and also very used on these ways: 61 61 {{{ 62 62 #!C … … 389 389 {{{ 390 390 #!C 391 amount_owed = (balance < 0) =0 : balance;391 amount_owed = (balance < 0) ? 0 : balance; 392 392 #define min(x,y) ((x) < (y) ? (x) : (y)) 393 394 // This is also valid, scanf is only run if i < max 395 i < max && scanf("%d", &x) == 1; 393 396 }}} 394 397