
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is a Word in Arduino
A word, very simply put, is an unsigned number of 2 bytes (or 16 bits). Thus, it can take in values from 0 to 65535.
Note that this definition is very microcontroller specific. In pure terms, a word is the amount of data a machine can process at a time, and it depends on the specifications of the machine.
For example, instead of Arduino Uno, if you use the ESP32 board, the word becomes a 32-bit unsigned int instead of 16-bit. This is because ESP32 has different specifications compared to Arduino Uno. int sizes on ESP32 are also larger than Arduino.
So, the bottom line is, whatever microcontroller or board you are using, make sure to check its specifications to understand what will one word correspond to.
How to Define a Word?
Defining a word is fairly straightforward −
word varName = value;
Example
word myWord = 100;