MAX, I think is some #define
If I am correct then do one thing;
#define MAX "This is a some text"
#define MAX1 100
#define MAX2 1000.78
int main()
{
printf("%d %d %d", sizeof(MAX), sizeof(MAX1), sizeof(MAX2));
return 0;
}
What do you get in the output ... ??
If you didn't understand the reason behind it, repost again with the
results you got
:)
Chetan Nanda wrote:
> Hi,
> I just need to ask ,
> If i do a sizeof on MAX, i.e sizeof(MAX).
> What will it return?
>
> On 08 Apr 2007 00:19:57 -0700, Knowledge Seeker <[EMAIL PROTECTED]>
> wrote:
>
>> Thomas ....
>> you are pretty fast man !!
>>
>> Do wait for others reply .........
>> I wanted to answer it ..... hmmm you are one of the more experienced
>> guy, so correct others reply; rather than taking an initiative to reply
>> the answer at first hand itself. It takes out opportunity for others to
>> express. Thus a question doesn't survive more than one or two order of
>> discussion.
>>
>> Brett and Nico what do you feel about it, doesn't Thomas catches words
>> from your mouth too ;)
>>
>> Thomas Hruska wrote:
>>
>>> moses_mcknight wrote:
>>>
>>>
>>>> Hi all,
>>>>
>>>> I've run across something I can't find any information on. I've seen
>>>> a number of variables defined as follows:
>>>>
>>>> #define MAX 8150ul
>>>>
>>>> What does the 'ul' at the end of the number do? I'm thinking it means
>>>> unsinged long, but can't find anything on it.
>>>>
>>>> Thanks,
>>>> Moses
>>>>
>>>>
>>> Yup. Forces the compiler to make the number an unsigned long. I've
>>> also seen 'ull' which makes it an 'unsigned long long'.
>>>
>>>
>>>
>>
>>
>>
>
>
>
> -
>
>
> [Non-text portions of this message have been removed]
>
>
>