PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Examples
C Intro
Functions
Function with Parameter.c
1
/*
2
Function with Parameter.c
3
4
Call a function that displays a value passed to it with a parameter.
5
6
http://learn.parallax.com/propeller-c-functions/function-parameter
7
*/
8
9
#include "simpletools.h"
// Include simpletools
10
11
void
value(
int
a);
// Function prototype
12
13
int
main
()
// main function
14
{
15
value(6);
// Call value function
16
}
17
18
void
value(
int
a)
// value function
19
{
20
print(
"The value is: a = %d\n"
, a);
// Display a single value
21
}
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Sat Aug 27 2016 00:58:03 for PropWare by
1.8.12