Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78919128
ch-01-ex-07-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
Fri, Aug 23, 18:19
Size
429 B
Mime Type
text/x-c
Expires
Sun, Aug 25, 18:19 (2 d)
Engine
blob
Format
Raw Data
Handle
20122121
Attached To
R9360 PCSC_git
ch-01-ex-07-solution.cpp
View Options
/*
* exercise-07.cpp
*
* Compile errors and warnings
*
* Created on: Jul 27, 2012
* Author: Radu Popescu <radu.popescu@epfl.ch>
*/
int main(int argc, char *argv[]) {
/* Trying to modify a constant variable; uncomment the following lines
* and recompile to see the error
*/
// const int var1 = 0;
// var1 = 2;
// Assigning a floating point value to an integer
int var2;
var2 = 3.2;
return 0;
}
Event Timeline
Log In to Comment