How can c let a function declaration with any parameter type ?

Posted by kamil çakir on Stack Overflow See other posts from Stack Overflow or by kamil çakir
Published on 2010-03-28T20:21:35Z Indexed on 2010/03/28 20:23 UTC
Read the original article Hit count: 213

Filed under:
|

it lets this function declaration

print(int size,int table[size][size]){ int i,j; printf("-------TABLE-------\n"); for(i = 0;i

gives error in this situation 44 C:\Users.. previous implicit declaration of 'print' was here (print(size,table); call in main) void print(int size,int table[size][size]){ int i,j; printf("-------TABLE-------\n"); for(i = 0;i

© Stack Overflow or respective owner

How can c let a function declaration with any parameter type ?

Posted by kamil çakir on Stack Overflow See other posts from Stack Overflow or by kamil çakir
Published on 2010-03-28T18:11:57Z Indexed on 2010/03/28 18:13 UTC
Read the original article Hit count: 213

Filed under:
|
|

I forgot to write void parameter but it works the i put void it gives error it lets this: print(int size,int table[size][size]){ int i,j; printf("-------TABLE-------\n"); for(i = 0;i

it says"previos implicit declaration was here " (means the call in main)

void print(int size,int table[size][size]){ int i,j; printf("-------TABLE-------\n"); for(i = 0;i

© Stack Overflow or respective owner

Related posts about c

    Related posts about functions