this is probably only a stylistic question
what do you think to be better in a single .c file program, declaring
functions with static qualifier or without it?
eg:
#include <stdio.c>
static int add(int a, int b) {return a+b;}
int main() {
printf("1+2=%d\ n", add(1, 2));
return 0;
}
is there any difference between the two?
static int add(..)
or
int add(..)
what do you think to be better in a single .c file program, declaring
functions with static qualifier or without it?
eg:
#include <stdio.c>
static int add(int a, int b) {return a+b;}
int main() {
printf("1+2=%d\ n", add(1, 2));
return 0;
}
is there any difference between the two?
static int add(..)
or
int add(..)
Comment