P. 1
First Steps in Embedded Systems

First Steps in Embedded Systems

|Views: 131|Likes:
Published by abhinav.gamer

More info:

Published by: abhinav.gamer on Nov 03, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





A function data type allocates memory for the type of value the function
returns. Function identifiers work differently than variables. When a function is
defined a data type for the function must be included. Instead of indicating the
amount of memory set aside for the function itself it indicates the amount of
memory the compiler needs to reserve for the value returned by the function.
For example, a function of type int returns a signed integer value and 8 bits
are reserved for the return value.
Suppose we have a function defined as follows:

void wait(int timeInSeconds);

The void keyword indicates to the compiler that the function will not return a
value; therefore, no memory is allocated for a return value.

Basic Data Types


You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->