Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102847341
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
Mon, Feb 24, 19:33
Size
422 B
Mime Type
text/x-c
Expires
Wed, Feb 26, 19:33 (2 d)
Engine
blob
Format
Raw Data
Handle
24440430
Attached To
R1106 Programming Concept Rouaze
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 and 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