The c programming language k&c exercises: 2-1 Determine the ranges of data types

Опубликовано: 05 Август 2026
на канале: Oceano
975
22

🇮🇹🍕🍝Canale Italiano -    / @onaeco_ita  
. Exercise 2-1. Write a program to determine the ranges of char, short, int, and long variables, both signed and unsigned, by printing appropriate values from standard headers and by direct computation. Harder if you compute them: determine the ranges of the various floating-point types.

My code
~https://github.com/suspectedoceano/C_...


TOOL used in the video to see the float
~https://float.exposed/0x3880

BEST videos i found to get floats
~   • Binary Representation of Floating-Point Va...  
~   • 7. Floating Point Format - Audio Number Fo...  

IEEE 754 Good articles
~https://ciechanow.ski/exposing-floati...
~https://randomascii.wordpress.com/cat...
~https://fabiensanglard.net/floating_p...
~https://anniecherkaev.com/the-secret-...

Why floats are kinda ..meh
~   • Floating Point Numbers - Computerphile  

00:00:00 Refresh on Theory
00:05:58 limits.h and float.h
00:12:30 Bitwise computing int ranges
00:25:30 computing float ranges
00:39:26 Unions and type punning

typedef struct 🔗s_links🔗
{
👨🏻‍🏫 Udemy course for total beginners, pre_knowledge before C (Overflow, 2’s complement, BASH, VIM…) - https://www.udemy.com/course/oceano_0...
📑 Notion community page (FREE coding sources) - https://suspectedoceano.notion.site/O...
🧾 Medium (code articles) -   / jalal92  
📲 Telegram group - https://t.me/suspectedoceanO
💻 GitHub - https://github.com/suspectedoceano
🛸 Discord -   / discord  
🐦 Twitter -   / suspectedoceano  
☕️ ChannelSupport - https://www.buymeacoffee.com/suspecte... (if you read this, you are already supporting, TY!)
} 🔗t_links🔗