Yeah i made a totally new program. However it still doesnt work. The error message says that it is an invaled conversion from int to int*. Here is the code. Please fix it and help repost it.
# include <stdio.h>
# include "simpio.h"
# include "genlib.h"
# define SIZE 500
void displayArray(int nArray[])
{
int arraynum;
printf("%d ",nArray[arraynum]);
}
main()
{
int amount,count,num1,num2,result,arraynum;
int nArray[arraynum];
amount=GetInteger();
count=amount;
num1=count;
num2=num1;
result=1;
arraynum=0;
while(num2!=0)
{
while(num1!=0)
{
result=result*2;
num1=num1-1;
}
displayArray(nArray[arraynum]);
arraynum=arraynum+1;
num2=num2-1;
}
getchar();
}