<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com arduino:variable_scope_and_qualifiers</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T16:47:59+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/scope?rev=1708041853&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/static?rev=1708041853&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/variabledeclaration?rev=1360957675&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/volatile?rev=1708041853&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:13+02:00</dc:date>
        <title>const keyword</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff</link>
        <description>The const keyword stands for constant. It is a variable qualifier that modifies the behavior of the variable, making a variable ”read-only”. This means that the variable can be used just as any other variable of its type, but its value cannot be changed. You will get a compiler error if you try to assign a value to a const variable.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/variable_scope_and_qualifiers/scope?rev=1708041853&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:13+02:00</dc:date>
        <title>Variable Scope</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/scope?rev=1708041853&amp;do=diff</link>
        <description>Variables in the C programming language, which Arduino uses, have a property called scope. This is in contrast to languages such as BASIC where every variable is a global variable.

A global variable is one that can be seen by every function in a program. Local variables are only visible to the function in which they are declared. In the Arduino environment, any  variable declared outside of a function (e.g. setup(), loop(), etc. ), is a global variable.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/variable_scope_and_qualifiers/static?rev=1708041853&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:13+02:00</dc:date>
        <title>Static</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/static?rev=1708041853&amp;do=diff</link>
        <description>The static keyword is used to create variables that are visible to only one function. However unlike local variables that get created and destroyed every time a function is called, static variables persist beyond the function call, preserving their data between function calls.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/variable_scope_and_qualifiers/variabledeclaration?rev=1360957675&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-15T20:47:55+02:00</dc:date>
        <title>Variables</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/variabledeclaration?rev=1360957675&amp;do=diff</link>
        <description>A variable is a way of naming and storing a value for later use by the program, such as data from a sensor or an intermediate value used in a calculation.

Declaring Variables

Before they are used, all variables have to be declared. Declaring a variable means defining its type, and optionally, setting an initial value (initializing the variable). Variables do not have to be initialized (assigned a value) when they are declared, but it is often useful.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/variable_scope_and_qualifiers/volatile?rev=1708041853&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:13+02:00</dc:date>
        <title>volatile keyword</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/volatile?rev=1708041853&amp;do=diff</link>
        <description>volatile is a keyword known as a variable qualifier, it is usually used before the datatype of a variable, to modify the way in which the compiler and subsequent program treats the variable.

Declaring a variable volatile is a directive to the compiler. The compiler is software which translates your C/C++ code into  the machine code, which are the real instructions for the Atmega chip in the Arduino.</description>
    </item>
</rdf:RDF>
