CForm
CForm[expr]
prints as a C language version of expr.
Examples
open allclose allProperties & Relations (2)
Possible Issues (2)
Names of functions output by CForm may be different from the names used by the specific C library:
In order to compile the C code generated, a header file found at the following location may need to be included:
Even when an output omits CForm from the top level, it is not stripped from subexpressions:
The output does not have CForm in it:
However, the variable e does have CForm in it, which may affect subsequent evaluations:
The product is not evaluated due to the intervening CForm:
Assign variables first and then apply CForm to the result to maintain computability:
Text
Wolfram Research (1988), CForm, Wolfram Language function, https://reference.wolfram.com/language/ref/CForm.html.
CMS
Wolfram Language. 1988. "CForm." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CForm.html.
APA
Wolfram Language. (1988). CForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CForm.html