Predefined Macros

suggest change

Introduction

ANSI C defines a number of macros. Although each one is available for your use in programming, the predefined macros should not be directly modified.

Syntax

  1. __DATE__ — the current date as a string literal in “MMM DD YYYY” format
  2. __TIME__ — the current time as a string literal in “HH:MM:SS” format
  3. __FILE__ — the current filename as a string literal
  4. __LINE__ — the current line number as a decimal constant
  5. __STDC__ — defined as 1 when the compiler complies with the ANSI standard

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents