473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Most restrictive type

Ref: K&R section 8.7

..... so for a C99 complying implementation, if I've understood
correctly, the most restrictive type is long long?

Vijay
Nov 14 '05 #1
6 1937
>Ref: K&R section 8.7

.... so for a C99 complying implementation, if I've understood
correctly, the most restrictive type is long long?


No, I don't think you're guaranteed that. It might be long double
or a pointer type. There are probably a lot of implementations
where double and long long are equally restrictive and the same
size, and long double is not more restrictive than double.

Gordon L. Burditt
Nov 14 '05 #2
go***********@burditt.org (Gordon Burditt) wrote:
Ref: K&R section 8.7

.... so for a C99 complying implementation, if I've understood
correctly, the most restrictive type is long long?


No, I don't think you're guaranteed that. It might be long double
or a pointer type. There are probably a lot of implementations
where double and long long are equally restrictive and the same
size, and long double is not more restrictive than double.


And I think the most restrictive integer type is intmax_t, which may be
larger and (AFAICT) more restrictive than long long. Though the word
"restrictive" does not occur in this sense in the Standard.

Richard
Nov 14 '05 #3
In <2h************@uni-berlin.de> "Vijay Kumar R Zanvar" <vi*****@globaledgesoft.com> writes:
Ref: K&R section 8.7

.... so for a C99 complying implementation, if I've understood
correctly, the most restrictive type is long long?


There is no way to tell. For a good guess, create an union containing
all integer types, all floating point types, a void pointer and a
function pointer and use it as the most restrictive type.

Of course, there is still the possibility that the most restrictive type
is an extended integer type, but this should not matter to portable code.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #4
In <40****************@news.individual.net> rl*@hoekstra-uitgeverij.nl (Richard Bos) writes:
go***********@burditt.org (Gordon Burditt) wrote:
>Ref: K&R section 8.7
>
>.... so for a C99 complying implementation, if I've understood
>correctly, the most restrictive type is long long?


No, I don't think you're guaranteed that. It might be long double
or a pointer type. There are probably a lot of implementations
where double and long long are equally restrictive and the same
size, and long double is not more restrictive than double.


And I think the most restrictive integer type is intmax_t, which may be
larger and (AFAICT) more restrictive than long long. Though the word
"restrictive" does not occur in this sense in the Standard.


What makes you think that intmax_t needs to be at least as restrictive
as long double or a pointer type?

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #5
>>And I think the most restrictive integer type is intmax_t, which may be
^^^^^^^
larger and (AFAICT) more restrictive than long long. Though the word
"restrictive" does not occur in this sense in the Standard.


What makes you think that intmax_t needs to be at least as restrictive
as long double or a pointer type?


long double and pointers are *INTEGER* types?

Gordon L. Burditt
Nov 14 '05 #6
In <c9********@library2.airnews.net> go***********@burditt.org (Gordon Burditt) writes:
And I think the most restrictive integer type is intmax_t, which may be ^^^^^^^larger and (AFAICT) more restrictive than long long. Though the word
"restrictive" does not occur in this sense in the Standard.


What makes you think that intmax_t needs to be at least as restrictive
as long double or a pointer type?


long double and pointers are *INTEGER* types?


You've snipped a bit too much. The OP didn't limit his question to
integer types, therefore it makes no sense to talk about the most
restrictive integer type.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Adrian B. | last post by:
Does anyone know of a framework or library that will enable me to use publish/subscribe comms? I want to create a server (using Python) running on a Unix box that will accept client connections...
3
by: Grahammer | last post by:
Is it just me, or is VB.Net much more restrictive than VB6? For example... I'm trying to build a control that will check a POP3 email account for mail and allow the user to enter POP commands...
122
by: seberino | last post by:
I'm interested in knowing which Python web framework is most like Ruby on Rails. I've heard of Subway and Django. Are there other Rails clones in Python land I don't know about? Which one...
4
by: Will Ware | last post by:
Python has no inherent provision for a restrictive API that blocks accesses to methods and variables outside an allowed set. Inexperienced Python programmers may fail to adhere to an agreed-upon...
21
by: py_genetic | last post by:
Hello, I'm importing large text files of data using csv. I would like to add some more auto sensing abilities. I'm considing sampling the data file and doing some fuzzy logic scoring on the...
11
by: Stevo | last post by:
I've been using the unload event for a long time. I have this code, which I've abstracted and made into a stripped down simple test case below, and it works fine on the major browsers (IE5+,...
3
by: Mark A | last post by:
At first glance it seems like a good idea to use the new RESTRICTIVE option when creating a database to remove public access otherwise granted by default. Then one could grant the required access...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.