Changes between Version 35 and Version 36 of ResumedC


Ignore:
Timestamp:
Sep 1, 2009, 5:03:09 PM (16 years ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ResumedC

    v35 v36  
    5858==== Void ====
    5959 * 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:
    6161{{{
    6262#!C
     
    389389{{{
    390390#!C
    391 amount_owed = (balance < 0) = 0 : balance;
     391amount_owed = (balance < 0) ? 0 : balance;
    392392#define min(x,y) ((x) < (y) ? (x) : (y))
     393
     394// This is also valid, scanf is only run if i < max
     395i < max && scanf("%d", &x) == 1;
    393396}}}
    394397