-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

rakesh kumar writes:
> Hi all,
>          Today while studying a book i just saw the following lines of code:
> int main(void)
> {
>  int printf(const char *n,...);

^^^^ prototype of the printf(3) function.

>  int a=1;
>  printf("abcdef");
> return 0;
> }


[...]

You include stdio.h to include the prototypes of the functions, but in above
case you already declared the prototype of the function which you invoked, so
no need to include the header file.

- -- 
They who can give up essential liberty to obtain a little temporary safety,
deserve neither liberty nor safety.
  -- Benjamin Franklin, Memoirs of the life and writings of Benjamin Franklin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkttliIACgkQHy+EEHYuXnSHcwCfeuCnS30swq+6UBfC5KyGILMm
eU8An3RPK8y+vRjQMaXVYi7YEXJ7/MC9
=dyfW
-----END PGP SIGNATURE-----

_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to