21st Century C by Ben Klemens
Author:Ben Klemens [Klemens, Ben]
Language: eng
Format: epub, mobi, pdf
Tags: c, o'reilly
Publisher: O'Reilly Media
Published: 2014-10-12T18:30:00+00:00
#include <stdio.h> int main(){ int *var; int const **constptr = &var; // the line that sets up the failure int const fixed = 20; *constptr = &fixed; // 100% valid *var = 30; printf("x=%i y=%i\n", fixed, *var); }
Figure 8-2. The links among the variables in Example 8-7
We would never allow int *var to point directly at int const fixed. We only managed it via a sleight-of-pointer where var winds up implicitly pointing to fixed without explicitly stating it.
Your Turn: Is it possible to cause a failure of const like this one, but where the disallowed type cast happens over the course of a function call, as per the Iggy Pop detector?
Download
21st Century C by Ben Klemens.mobi
21st Century C by Ben Klemens.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(15014)
The Mikado Method by Ola Ellnestam Daniel Brolund(12273)
Hello! Python by Anthony Briggs(12166)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(11538)
Dependency Injection in .NET by Mark Seemann(11325)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10529)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(10139)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(9794)
Grails in Action by Glen Smith Peter Ledbrook(9467)
Hit Refresh by Satya Nadella(9039)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(9021)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(9015)
The Kubernetes Operator Framework Book by Michael Dame(8473)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8428)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8298)
Robo-Advisor with Python by Aki Ranin(8248)
Practical Computer Architecture with Python and ARM by Alan Clements(8224)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8193)
Building Low Latency Applications with C++ by Sourav Ghosh(8098)