Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78977354
ch-05-ex-01-solution.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 24, 02:22
Size
333 B
Mime Type
text/x-c
Expires
Mon, Aug 26, 02:22 (2 d)
Engine
blob
Format
Raw Data
Handle
20130594
Attached To
R9360 PCSC_git
ch-05-ex-01-solution.cpp
View Options
/*
* chapter-05-exercise-01.cpp
*
* Pointers and functions #1
*
* Created on: Oct 8, 2012
* Author: Radu Popescu <radu.popescu@epfl.ch>
*/
#include <iostream>
void f(const int *const x) { std::cout << "The value is: " << *x << std::endl; }
int main(int argc, char *argv[]) {
const int x = 5;
f(&x);
return 0;
}
Event Timeline
Log In to Comment