home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / std / c / 3310 < prev    next >
Encoding:
Text File  |  1993-01-01  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!wupost!csus.edu!netcom.com!jimlynch
  3. From: jimlynch@netcom.com (Jim Lynch)
  4. Subject: Re: pointer comparisons
  5. Message-ID: <1993Jan1.142156.23920@netcom.com>
  6. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  7. References: <1hsdg8INN5jm@urmel.informatik.rwth-aachen.de> <C04LIz.3DG@NCoast.ORG>
  8. Date: Fri, 1 Jan 1993 14:21:56 GMT
  9. Lines: 21
  10.  
  11. In article <C04LIz.3DG@NCoast.ORG> brown@NCoast.ORG (Stan Brown) writes:
  12. >In article <1hsdg8INN5jm@urmel.informatik.rwth-aachen.de> berg@physik.tu-muenchen.de (Stephen R. van den Berg) writes:
  13. >>What about the following program:     [of which I show only the salient parts]
  14. >>void*a,*b;
  15. >>
  16. >>main()
  17. >>{ int i;  /* initial assignment deleted */
  18. >>  a=malloc(1); b=malloc(1);
  19. >>  i+=a>b; 
  20. >>  printf("%d\n",i);
  21. >>  return i;
  22. >>}
  23. >>---------------------------------------
  24. >>
  25. >>Is this program *always* required to print or return "3"?
  26. >
  27. >I believe this program is not obligated to print or return _anything_,
  28. >but may, in John Woods's happy phrase, "cause demons to fly out of your
  29. >nose."
  30.  
  31. Aside from which 'i' has an undefined value...
  32.