Last change
on this file since 289 was 289, checked in by bird, 22 years ago |
Initial coding.
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
841 bytes
|
Line | |
---|
1 | /* $Id: complex.c 289 2003-06-04 01:53:52Z bird $
|
---|
2 | * Complex numbers.
|
---|
3 | * C99???
|
---|
4 | */
|
---|
5 |
|
---|
6 | #include <stdio.h>
|
---|
7 | /* do we have complex.h? let's skip that for now and do the #define ourself. */
|
---|
8 | #define complex _Complex
|
---|
9 |
|
---|
10 | void main(void)
|
---|
11 | {
|
---|
12 | complex int ComplexInt;
|
---|
13 | complex float ComplexFloat;
|
---|
14 | complex double ComplexDouble;
|
---|
15 | complex long double ComplexLongDouble;
|
---|
16 |
|
---|
17 | printf("sizeof(complex int ) = %2dbytes %3dbits\n", sizeof(ComplexInt ), sizeof(ComplexInt )*8);
|
---|
18 | printf("sizeof(complex float ) = %2dbytes %3dbits\n", sizeof(ComplexFloat ), sizeof(ComplexFloat )*8);
|
---|
19 | printf("sizeof(complex double ) = %2dbytes %3dbits\n", sizeof(ComplexDouble ), sizeof(ComplexDouble )*8);
|
---|
20 | printf("sizeof(complex long double) = %2dbytes %3dbits\n", sizeof(ComplexLongDouble), sizeof(ComplexLongDouble)*8);
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.