Thursday, 17 May 2012
Friday, 11 May 2012
Character Set
Character Set:
The characters that can be used to form words, numbers and expressions depend upon the computer on which the program is run. However, a subset of characters is available that can be used on most personal, micro, mini and mainframe computers. The characters in C are grouped into the following categories:
1. Letters
2. Digits
3. Special characters
4. White spaces
The entire character set is given in Table .
The compiler ignores white spaces unless they are a part of a string constant. White spaces may h, used to separate words, but are prohibited between the characters of keywords and identifiers.
Character Set
Trigraph Characters:
Many non-English keyboards do not support all the characters mentioned in Table . Trigraph- sequences to provide a way to enter certain characters that are not available on some keyboards. Each trigraph sequence consists of three characters (two question marks followed by another character) as shown in Table .
Sunday, 6 May 2012
MS-Dos System
The program can be created using any word processing software in non-document mode. The file name
should end with the characters ".c" like program.c, pay.c, etc. Then the command
under MS-DOS operating system would load the program stored in the file pay.c and generate the object code. This code is stored in another file under name pay.obj. In case any language errors are found, the compilation is not completed. The program should then be corrected and compiled again.
The linking is done by the command
which generates the executable code with the filename pay.exe. Now the command
would execute the program and give the results.
should end with the characters ".c" like program.c, pay.c, etc. Then the command
MSC pay . c
under MS-DOS operating system would load the program stored in the file pay.c and generate the object code. This code is stored in another file under name pay.obj. In case any language errors are found, the compilation is not completed. The program should then be corrected and compiled again.
The linking is done by the command
LINK pay .obj
which generates the executable code with the filename pay.exe. Now the command
pay
would execute the program and give the results.
Subscribe to:
Posts (Atom)

