In a program I am writing I have declared this variable:
#define SIZE 5
long int clockNum [SIZE] = {98401, 526488, 765349, 34645, 127615};
If I would like to print this so that the output was:
098401
526488
765349
034645
127615
How Would I do this? I tried the statement below but it doesnt seem to work..
for(i = 0; i < SIZE; i++)
{
printf ("%li\n",&clockNum[i]);
}
return(0);
The output I get looks like:
-1076048964
-1076048960
-1076048956
-1076048952
-1076048948
remove the
&from printf and let seehere in
printf&give the address value of the variable