Why does this C code print different values for the same pointer when cast to different types?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=Fia5xt0dtr8



Duration: 0:00
6 views
0


Why does this C code print different values for the same pointer when cast to different types?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!

(stackoverflow.com/users/22592417/alphin-thomas)Alphin Thomas
(stackoverflow.com/users/584518/lundin)Lundin
A special thanks goes out to the (stackoverflow.com/questions/79514261/why-does-this-c-code-print-different-values-for-the-same-pointer-when-cast-to-di)Stackexchange community

I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de

casting pointers c dereference memory




Other Videos By Peter Schneider


2025-03-17Ethereum: Browser Solidity: What does the "Transaction" tab do?
2025-03-17Tex: How to customize LaTeX listings to achieve this specific layout?
2025-03-17Ethereum: Type Error: type is not callable msg.sender()
2025-03-17Electronics: A Problem with the Basics of OpAmps
2025-03-17Mathematica: LocatorPane w/multiple locators and constraints
2025-03-17Electronics: Why is my circuit inverting its audio output? LM386 compatibility with the NTE823
2025-03-17Electronics: Is there anything like RMS for capacitor or inductor?
2025-03-17Ethereum: Node's IP exposed
2025-03-17Ethereum: Will payable modifier throw if no ether is sent to it?
2025-03-17Mathematica: How to apply a condtions on the RHS of this equation
2025-03-16Why does this C code print different values for the same pointer when cast to different types?
2025-03-15Mathematica: Solution to a two-dimensional integration equation
2025-03-15Dba: Create a "INTO" table with primary key
2025-03-15Dba: What are the differences between SQL I/O Sim and SQL IO tools?
2025-03-15Dba: Why is this Full Outer Join not working?
2025-03-15Dba: PostgreSQL 9.3: Dump a database excluding the data of some tables
2025-03-15Start a PowerShell script in R via system2()
2025-03-15how to set traefik dashboard service name
2025-03-15Delphi TADOQuery exec for SQL Server stored procedure - exception not caught when multi-column un...
2025-03-15Dba: Comments in EXPDB parameter file
2025-03-15Electronics: Why always one diode takes up all the voltage drop in a series of diodes?