why we have an int type when we already have short and long ints
because int means either short or long.
Gaiety
1
Junior Poster
Recommended Answers
Jump to Postbecause int means either short or long.
Or maybe it doesn't. Maybe int, short, and long all have different ranges. Gee. I guess there's a reason, then.
Jump to Post> why we have an int type when we already have short and long ints
You got it the wrong way round.
C evolved from B and BCPL, where the only data type was "the machine word". This became the int type in C. The short and long got added …
All 7 Replies
activator2030
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
Gaiety
1
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Salem
5,138
Posting Sage
Gaiety
1
Junior Poster
Salem
5,138
Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.