# Manual

**URL:** <https://forum.arduino.cc/t/manual/496367>\
**Category:** Programming\
**Created:** [December 12, 2017, 11:30am UTC](https://forum.arduino.cc/t/manual/496367 "2017-12-12T11:30:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jomacot](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jomacot](https://forum.arduino.cc/u/jomacot)\
**Post date:** [December 12, 2017, 11:30am UTC](https://forum.arduino.cc/t/manual/496367/1 "2017-12-12T11:30:19Z")

</div>

Sorry if this has come up before but, is there a manual for the programming language?

A long time ago, a very long time, I did a C+ language course so appreciate the structured approach to learning the program.  
Trying out various projects does teach you a bit but it's fragmented.

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [December 12, 2017, 11:50am UTC](https://forum.arduino.cc/t/manual/496367/2 "2017-12-12T11:50:42Z")

</div>

This page contains a reference for the Arduino core library functions as well as some basic standard C++:

> **[Arduino Reference - Arduino Reference](https://www.arduino.cc/reference/en/)**
>
> The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords.

For general C++, I like this page:  
[http://www.cplusplus.com/reference/](http://www.cplusplus.com/reference/)  
and their tutorial:  
[http://www.cplusplus.com/doc/tutorial/](http://www.cplusplus.com/doc/tutorial/)  
but I'm sure others have different favorites. For those two links and similar references you need to keep in mind that C++ on a microcontroller is not exactly the same as C++ on a computer due to the limitations of the hardware and outputs and so you do need to filter through the information that doesn't apply.

Here is the manual for avr-libc, which is used for the Arduino AVR Boards such as Uno, Mega, Leonardo, etc.:  
[http://nongnu.org/avr-libc/user-manual/](http://nongnu.org/avr-libc/user-manual/)

---

<div class="post-metadata">

**Author:** ![Paul\_KD7HB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_kd7hb/32/1127958_2.png) [@Paul\_KD7HB](https://forum.arduino.cc/u/Paul_KD7HB)\
**Post date:** [December 12, 2017, 6:00pm UTC](https://forum.arduino.cc/t/manual/496367/3 "2017-12-12T18:00:30Z")

</div>

> jomacot:  
> Sorry if this has come up before but, is there a manual for the programming language?
> 
> A long time ago, a very long time, I did a C+ language course so appreciate the structured approach to learning the program.  
> Trying out various projects does teach you a bit but it's fragmented.

They are called "books". Ask at your local book store, either new or used. Ask Ebay or Amazon for a list of Arduino programming books. Even old books on C or C++ will help you with the Arduino programming.

Paul

---

<div class="post-metadata">

**Author:** ![TonyWilk](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@TonyWilk](https://forum.arduino.cc/u/TonyWilk)\
**Post date:** [December 12, 2017, 6:23pm UTC](https://forum.arduino.cc/t/manual/496367/4 "2017-12-12T18:23:21Z")

</div>

> Paul\_KD7HB:  
> Even old books on C or C++ will help you with the Arduino programming.

Even really old books... Kernighan&Ritchie's "The C programming language" - which seems to be available online these days: [http://cs.indstate.edu/~cbasavaraj/cs559/the\_c\_programming\_language\_2.pdf](http://cs.indstate.edu/~cbasavaraj/cs559/the_c_programming_language_2.pdf)

Yours,  
TonyWilk

---

<div class="post-metadata">

**Author:** ![jomacot](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jomacot](https://forum.arduino.cc/u/jomacot)\
**Post date:** [December 17, 2017, 12:15pm UTC](https://forum.arduino.cc/t/manual/496367/5 "2017-12-17T12:15:55Z")

</div>

Thanks for all the replies, even the sarcastic one!

As it turns out I was programming in C not C++ but as I said that was over 20 years ago and I've not used anything like it since.

Books Manuals whatever what I was trying to ascertain was the type of program, it looked like C to me but then I'm no expert hence the question. So I was trying to find out if this was a cut down or enhanced version of a C language specifically for Arduino

---

<div class="post-metadata">

**Author:** ![BulldogLowell](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BulldogLowell](https://forum.arduino.cc/u/BulldogLowell)\
**Post date:** [December 17, 2017, 12:23pm UTC](https://forum.arduino.cc/t/manual/496367/6 "2017-12-17T12:23:44Z")

</div>

> jomacot:  
> So I was trying to find out if this was a cut down or enhanced version of a C language specifically for Arduino

so it is right now (circa) C++ '11... reshaped for Arduino micro-controller environment, meaning that you will come across some the Arduino IDE's peccadilloes from time to time. 😉

---

<div class="post-metadata">

**Author:** ![TonyWilk](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@TonyWilk](https://forum.arduino.cc/u/TonyWilk)\
**Post date:** [December 17, 2017, 1:46pm UTC](https://forum.arduino.cc/t/manual/496367/7 "2017-12-17T13:46:16Z")

</div>

> jomacot:  
> As it turns out I was programming in C not C++ _snip_

The compiler is C++ and a lot of library stuff is in classes.

Your 'sketch' code is pre-processed to generate required headers and forward declarations then compiled with a pre-made main() to make it more 'plug-and-play'.

IMHO, sticking with C is fine for Arduino, I tend to avoid C++ constructs on tiny processors (dynamic memory allocation can be a bit fraught on a machine with only a couple of K of RAM).

The only real problem I've encountered from an old 'C' perspective was using _"typedef struct \_name{...}NAME;"_ where the compiler threw a wobbler. Stick to _"struct NAME{...};"_.

Yours,  
TonyWilk

---

<div class="post-metadata">

**Author:** ![MorganS](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/morgans/32/218718_2.png) [@MorganS](https://forum.arduino.cc/u/MorganS)\
**Post date:** [December 17, 2017, 1:59pm UTC](https://forum.arduino.cc/t/manual/496367/8 "2017-12-17T13:59:00Z")

</div>

The difficulty you may find is that most C++ books are written from the perspective of a large UNIX computer. Constructs like standard-out and error-out don't exist on the Arduino. Those aren't actually part of the language but part of the standard input-output library. The books don't usually get into the details of what is or isn't part of the language.

It's more confusing when you want information on a very common library like math.h which does exist in that book-world but since it isn't "part of the language" they don't explain any of it.

Start from "Arduino for Teens" or something like that. I hear that's a good one.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 10:53pm UTC](https://forum.arduino.cc/t/manual/496367/9 "2021-05-05T22:53:23Z")

</div>

Closed on May 5, 2021, 10:53pm UTC


