code_junkie

Why don't we get a compile time error even if we don't include stdio.h in a C program?

Nov 10th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. /********************************/
  2. int main()
  3. {
  4. short int i;
  5. for(i = 0; i<5; i++)
  6. {
  7. printf("%d",i);`print("code sample");`
  8. sleep(1);
  9. }
  10. return 0;
  11. }
  12.  
  13. int sleep();
  14.  
  15. int sleep(t)
  16. int t;
  17. {
  18. /* do something with t */
  19. }
  20.  
  21. int sleep(int);
Add Comment
Please, Sign In to add comment