7/24/2013

DCT1083 Programming Fundamentals : Chapter 1 Exercise

A. State whether the following are valid identifiers or invalid identifier. If the identifier names are valid, state why.

(example) 1m234 - invalid: begins with a number

power                          Valid; mnemonic
add_5                          Valid; mnemonic
a2b3c4d5                    Valid; not mnemonic
abcd                            Valid; not mnemonic                 
return                                Invalid; C++ keyword
123435                        Invalid; begins with a number
amount                        Valid; mnemonic
1A2345                        Invalid; begins with a number
while                          Invalid; C++ keyword
int                              Invalid; C++ keyword
$taxes                        Invalid; begins with a special character



contoh jawapan untuk soalan 2 (b).
#include
using namespace std;

int main()
{
  cout << "The time has come.";
  return 0;
}



No comments:

Cara download Installer windows 10 dalam format ISO

1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan.  ...