Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!bionet!agate!shelby!neon!jhsu From: jhsu@Neon.Stanford.EDU (Jeffrey H. Hsu) Newsgroups: comp.lang.c Subject: IsUnsigned() function? Message-ID: <1990Jul16.214155.5087@Neon.Stanford.EDU> Date: 16 Jul 90 21:41:55 GMT Organization: Computer Science Department, Stanford University Lines: 18 Fellow C hackers, Here is a C question I was asked at a Microsoft interview (no, I didn't get the job...). How would you write a space efficient algorithm/function in C that takes in an integer and returns 0 if signed and 1 if unsigned? IsUnsigned(a) int a; { } I would appreciate answers from anyone. Thanks, Jeff