This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Input and Output / Format Types  /
CForm

  • CForm[ expr ] prints as a C language version of expr.
  • Standard arithmetic functions and certain control structures are translated.
  • No declarations are generated.
  • CForm acts as a "wrapper", which affects printing, but not evaluation.
  • See the Mathematica book: Section 1.11.4Section 2.8.1.
  • See also: FortranForm, Compile.

    Further Examples

    In[1]:=

    Out[1]//CForm=