Anda di halaman 1dari 2

Comments in C

If you construct a long program today and try to recall it after a few days, there is every possibility that you
would have forgotten quite a few things and even what the program does or what a particular name stands
for. Comments if included in a program help in recollection of different names, data values and other
parameters.

Escape Sequences in C
Escape sequences are basically control characters used for formatting the output. These are combinations of
a backslash and a character in lowercase. We have already used "\n", which shifts the curser to the next
line. Table lists the escape sequences defined in C language.

Features of C
(i) It is a structured high-level language and is highly portable to different platforms.
(ii) C is closest to assembly language and hence it is extremely efficient. Some programmers call it "highlevel assembly language", although it is not a justified comment.

gets() and puts() Functions


We can read a string using the %s conversion specification in the scanf function.
However, it has a limitation that the strings entered cannot contain spaces and
tabs. To overcome this problem, the C standard library provides the gets
function. It allows us to read a line of characters (including spaces and tabs) until
the newline character is entered, i. e., the Enterkey is pressed. A call to this
function takes the following form:

getchar() and putchar()


BY DINESH THAKUR

The standard C library provides several functions and macros for character 1/0.
Here we consider the getchar and putchar macros. As these macros read or write
a single character, they are typically used in a loop to read/write a sequence of
characters.

What is Header Files in C?


BY DINESH THAKUR

The C standard library provides the executable code and declarations for
functionality provided in it. The executable code for the library is provided in
separate files, usually in the lib directory, in the installation directory of the
compiler. The library files in TurboC/C++ are named *.LIB, whereas those in the
MinGW compiler provided with Dev-C++ and Code :: Blocks are named lib*. a.

What is Basic Language (beginner's all-purpose symbolic instruction


code,)?
BY DINESH THAKUR

BASIC stands for beginner's all-purpose symbolic instruction code, and is


a computerprogramming language that was invented in 1964 at Dartmouth
University by John G Kemeny and Thomas E Kurtz. BASIC has the advantage of
English-like commands that are easier to understand and remember than those
of most other languages. Even so, the latest versions of BASIC can do just about
anything programming languages like C or Pascal can do.

What are ANSI C and ANSI character set?


ANSI C: The current standard version of the C language, subject of ANSI
standard X3.4-1968. It added several important features tothe language,
including
function
prototypes,STRUCTURE
passing
and
structureASSIGNMENT.

Anda mungkin juga menyukai