taking information from a structure and using in another function
<p>I need to know if I can call the information that is in tire_pressure in the structure and use it in another function? Basically I am not sure how to call it from one to the other. Do I have to declare the function in tireTest? Which is the function I am trying to access the tire_pressure information at. Thanks for the help</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;time.h&gt;


struct tires
{
    char Manufacturer[40];
    int tire_pressure[0];
    int pressure_change[0];
}typedef tires;
// Prototypes
void getTireInformation(tires*, int);
void tirePressure(tires*, int);
void tireTest(tires*, int);
int main()
{
    tires tire[4];
    tires* ptire = &amp;tire[0];
    srand(time(NULL));

    getTireInformation(ptire, 4);
    tirePressure(ptire, 4);
    tireTest(ptire, 4);

    return 0;
}// end main
//============================
void getTireInformation(tires* ptire, int size)
{
    int i = 0;
    for (i = 0; i &lt; size; i++)
    {
        printf("please enter Make for the tire: \n");
        scanf("%s", &amp;(ptire + i) -&gt;Manufacturer);


    }

    printf("all tire make you entered ...just for verification:\n");
    for(i = 0; i &lt; size; i++)
        printf("%s\n",(ptire +i) -&gt;Manufacturer);

}//end getTireInformation
//=======================================================================

void tirePressure(tires* ptire, int size)
{
    int i = 0;
    int min = 18;
    int max = 35;
    for (i = 0; i &lt; size; i++)
    {
        (ptire + i) -&gt;tire_pressure[0] = rand() % (max - min + 1) + min;
        printf("The Tire pressure is: ");
        printf("%d\n",(ptire + i) -&gt; tire_pressure[0]);
    }// end for
}// end tirePressure
//==============================================================
void tireTest(tires* ptire, int size)
{
    int i = 0;
    int min = 2;
    int max = 5;
    int change[0] = {0};
    i++;
    for (i = 0; i &lt; size; i++)
    {
        change[0] = rand() % (max - min + 1) + min;
        //(ptire + i) -&gt; pressure_change[0] = rand() % (max - min + 1) + min;
        printf("Pressure change from test %d: %d\n",i + 1, change[0]);
        //(ptire + i) -&gt; pressure_change[0] = change[0] + tirePressure;
        //printf("%d\n", (ptire +i) -&gt; pressure_change);
    }// end for

}
</code></pre>