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
Basics
Array Variables.c
1
/*
2
Array Variables.c
3
4
Declare and initialize an array and display a couple of its elements.
5
6
http://learn.parallax.com/propeller-c-start-simple/array-variables
7
*/
8
9
#include "simpletools.h"
// Include simpletools
10
11
int
main
()
// main function
12
{
13
int
p[] = {1, 2, 3, 5, 7, 11};
// Initialize the array
14
print(
"p[0] = %d\n"
, p[0]);
// Display what p[0] stores
15
print(
"p[3] = %d\n"
, p[3]);
// display what p[3] stores
16
}
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Sat Aug 27 2016 00:58:03 for PropWare by
1.8.12