| Subject: | Re: sizeofx |
|---|---|
| From: | Ioannis Vranos |
| Date: | Mon, 31 Mar 2008 00:22:19 +0300 |
| Newsgroups: | comp.lang.c |
Eric Sosman wrote: > Ioannis Vranos wrote: >> Ian Collins wrote: >>> Ioannis Vranos wrote: >>>> Ioannis Vranos wrote: >>>>> I first saw that only sizeof x is valid at the pdf hosted at >>>>> http://cprog.tomsweb.net. >>>> More specifically the above writes: >>>> >>>> "sizeof Returns size of operand in bytes; two forms: >>>> 1) sizeof(type) >>>> 2) sizeof expression" >>>> >>>> >>> Did you read what Harald said: "(x) is a perfectly valid expression"? >> >> ... right. However sizeofx doesn't compile and if (x) was considered an >> expression it should be sizeof (x), and sizeof(x) shouldn't compile. > > Try sizeof(((((((((((((((((((((x))))))))))))))))))))) > and perhaps the answer will come to you. Yes, it had already arrived. :-) Thanks anyway. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: sizeof(x), Eric Sosman |
|---|---|
| Next by Date: | Re: Reentrant functions and memory allocation, fmassei |
| Previous by Thread: | Re: sizeof(x), Eric Sosman |
| Next by Thread: | Re: sizeof(x), Keith Thompson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |