MESSAGE
DATE | 2016-03-06 |
FROM | Ruben Safir
|
SUBJECT | Re: [Hangout-NYLXS] Announcement: Workshop Organizational Meeting
|
OK a few things
ruben-at-www:~> cat asia.c
int main(int argv, char * argc )
{
int array[4]= {1,2,3,4};
unsigned int i;
for(i=0; i<4; i++)
{
printf("%d\t", array[i]);
}
printf("\n");
int* matrix = array +1;
for(i=0; i<4; i++)
{
printf("%d\t", matrix[i]);
}
return 0;
}
ruben-at-www:~> gcc asia.c
asia.c: In function ‘main’:
asia.c:7:3: warning: incompatible implicit declaration of built-in
function ‘printf’ [enabled by default]
printf("%d\t", array[i]);
^
asia.c:10:3: warning: incompatible implicit declaration of built-in
function ‘printf’ [enabled by default]
printf("\n");
^
First, don't leave out arcv argc
and Nuh?
What does gcc say here?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
hangout mailing list
hangout-at-nylxs.com
http://www.nylxs.com/
|
|