i'm a beginner in C , so i'm a little confused if char* ft_name(args)
is equivalent to char *ft_name(args)
in function prototype .
can anybody help me please
i'm a beginner in C , so i'm a little confused if char* ft_name(args)
is equivalent to char *ft_name(args)
in function prototype .
can anybody help me please
C compiler ignores the white space between the tokens and both declrations from the compiler point of view look like
char*ft_name(args);
so they are exactly the same.
the only place where compiler does not ignore the white space are string literals like "Hello world"
The program:
int main(int argc, char *
* argv)
{
size_t s =
strlen(argv [ 0] );
printf("%zu %s\n",
s, argv
[
0
]);
}
is seen by the compiler as
int main(int argc,char**argv){size_t s=strlen(argv[0]);printf("%zu %s\n",s,argv[0]);}
White space is not ignored during the preprocessor stage when macros are expanded.