ISET Monitor
LIVE
Trump Administration Pressures Intel and Nvidia, Sparking Concerns Over State Control Ukraine braces for another difficult winter amid ongoing attacks on energy infrastructure Russia’s hybrid war on Europe is evolving but failing to deter Ukraine support, IISS report says Biomolecular analysis reveals centuries-old embalming recipes for Egyptian crocodile mummies Cybersecurity Weekly Roundup: Ransomware Fraud, ChatGPT Sites Leaks, and New Defenses Astronomers Witness Rare Stellar Merger as Red Giant Devours Companion Star NATO Fighter Jets Scrambled After Drone Enters Latvian Airspace Bacterial colonies turn themselves inside out when oxygen is scarce Global Canopy Atlas Maps World Forests Using 3D Laser Surveys SAP Investigates GitHub Security Incident Involving Suspected AI-Assisted Intrusion Zelenskyy Compares Trump Calling Putin ‘Friend’ to Praising Hitler in WWII Microsoft Issues Emergency Hotpatch to Fix Windows Server 2025 Crashes Elusive paraparticles observed inside a quantum simulator for the first time German parliament set to vote on draft 2027 federal budget totaling €556 billion Trump Administration Pressures Intel and Nvidia, Sparking Concerns Over State Control Ukraine braces for another difficult winter amid ongoing attacks on energy infrastructure Russia’s hybrid war on Europe is evolving but failing to deter Ukraine support, IISS report says Biomolecular analysis reveals centuries-old embalming recipes for Egyptian crocodile mummies Cybersecurity Weekly Roundup: Ransomware Fraud, ChatGPT Sites Leaks, and New Defenses Astronomers Witness Rare Stellar Merger as Red Giant Devours Companion Star NATO Fighter Jets Scrambled After Drone Enters Latvian Airspace Bacterial colonies turn themselves inside out when oxygen is scarce Global Canopy Atlas Maps World Forests Using 3D Laser Surveys SAP Investigates GitHub Security Incident Involving Suspected AI-Assisted Intrusion Zelenskyy Compares Trump Calling Putin ‘Friend’ to Praising Hitler in WWII Microsoft Issues Emergency Hotpatch to Fix Windows Server 2025 Crashes Elusive paraparticles observed inside a quantum simulator for the first time German parliament set to vote on draft 2027 federal budget totaling €556 billion

The crucial role of the tilde key in programming

💻 Tech 1 min read 👁 4

Often overlooked, the tilde key to the left of '1' is a vital tool for programmers, facilitating everything from memory management to bitwise operations.

The crucial role of the tilde key in programming💻Tech

Photo: Engadget

Key points

  • Bitwise NOT operator
  • C++ class destructors
  • CSS sibling selector

The tilde symbol (~), a staple of computer keyboards since 1965, serves functions far beyond its linguistic use as an accent mark. For programmers, it is a versatile tool embedded in the syntax of languages like C, C++, Java, and Python.

A primary function of the tilde is the bitwise NOT operator, which inverts binary digits. This technique was historically essential for color inversion in early video game graphics. Additionally, the double bitwise NOT operator is frequently used to truncate decimals, providing a quick way to handle numerical data.

In C++ and C#, the tilde is used to define class destructors. These functions are critical for memory management, as they automatically clean up resources when an object is removed from the system. This is particularly important in large-scale open-world games, where constant object deletion prevents memory leaks and performance degradation. Furthermore, in CSS, the tilde acts as a general sibling selector, allowing developers to target and style multiple elements within a web interface efficiently.

Source Engadget — engadget.com/2309616/that-key-left-of-1-on-many-keyboards-is-actual… ↗

Contact the newsroom

Got a tip, a proposal or a partnership question? Write to us and we will reply shortly.