![]() |
| | |||||||
| Teaching Teaching |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Do beginning programming classes usually teach that you declare all your variables... ...at the beginning? example ... //Declare Variables int number1, number2; int total; //Main Code number1 = 3; number2 = 4; total = number1 + number2; print(total); This is the way I was taught. Do they still teach that way? The reason not to do it is because the variables take up memory space. Why waste the space before you are going to use them? |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I declare 8 floating point numbers in C programming language? | Brian A | Programming & Design | 0 | 04-04-2008 05:54 AM |
| Should they teach marriage and relationships classes in school? | I AM Always Thinkin'! | Teaching | 0 | 04-01-2008 05:57 AM |
| If I were to over De-sensitivity Classes or would teach them would the | A blank! | Teaching | 1 | 03-13-2008 06:52 PM |
| dog obedience classes? do they work? what do they teach? what do they correct? | may08mommy | Teaching | 0 | 03-10-2008 12:24 AM |
| What is the best, first computer programming language to teach? | just_me | Teaching | 0 | 03-08-2008 08:47 PM |