Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. spiderling66

    macro unsafe?

    thanks Salem. :)
  2. spiderling66

    macro unsafe?

    hi guys. i hava no idea why the macro is unsafe, i just want the number(x) is always positive. could anyone tell me why, please? #define number(x) x < 0 ? -x : x
  3. spiderling66

    accuracy lost

    i am looking for the average of these double numbers, but i always got 5.0000, it's the accuracy lost, could anyone tell me what the problem is? cheers average (double a[], int n) { int i; double av = 0.0; for( i = 0; i < n; i++) { av += *a++; } return av; } main() { double a[]...
  4. spiderling66

    Preprocessor

    i got it thank you very much :)
  5. spiderling66

    Preprocessor

    anyone can help me, what does #define eg_H mean in the header file? and what action of preprocessor work on it? the sections of code can be inserted by #include, but in the output of the preprocessor, does output contain these two /* prog.c */ and # include "eg.h" ? the code is showing below...

Part and Inventory Search

Back
Top