Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP C/HP-UX Reference Manual: HP-UX Systems > Chapter 3 Data Types and Declarations

Program Structure

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

A translation unit consists of one or more declarations and function definitions.

Syntax

translation-unit ::=
external-declaration
translation-unit external-declaration

external-declaration ::=
function-definition
declaration

Description

A C program consists of one or more translation units, each of which can be compiled separately. A translation unit consists of a source file together with any headers and source files included by the #include preprocessing directive. Each time the compiler is invoked, it reads a single translation unit and typically produces a relocatable object file. A translation unit must contain at least one declaration or function definition.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.