web analytics

April 2015

Write down the character test functions and their tests.

Character Test Functions:  In the following table the required functions and their tests are given. Function Test isalnum(c) Is c an alphanumeric character? isalpha(c) Is c an alphabetic character? isdigit(c) Is c a digit? islower(c) Is c a lower case letter? isprint(c) Is c a printable character? ispunct(c) Is c a punctuation mark? isspace(c) Is …

Write down the character test functions and their tests. Read More »

In C language, define input & output operations and management of them.

Input & output operations:  The operations which took place in order to take data and make the display of the processed information are known as input & output operations. Management of input & output operations:  In C language, in general, user use scanf and printf functions for input and output purpose respectively. scanf can be used …

In C language, define input & output operations and management of them. Read More »

What are the rules for ++ and — operators?

Rules for ++ and – operators:  Following are the rules for the increment (++) and decrement (–) operators. Increment (++) and decrement (–) operators are unary operators and they require variable as their operands. When postfix ++ (or –) is used with a variable in an expression, the expression is evaluated first using the original …

What are the rules for ++ and — operators? Read More »

What is operator ? What are the categories of operators?

Operator:  An operator is a symbol that tells the computer to perform certain mathematical and logical manipulations. Operators are used in programs to manipulate data and variables. Such as, ++, –, <, > etc. Categories of operators:  C operators can be classified into a number of categories. They are as follows, Arithmetic operators Logical operators …

What is operator ? What are the categories of operators? Read More »

What are the data types of C?

Data types: C language is rich in its data types. ANSI supports three classes of data types. Primary or fundamental data types. Derived data types. User-defined data types. All C compilers support five fundamental data types. Namely, integer (int), character (char), floating point (float), double-precision floating point (double) and void. They are described below.             Integer types: Integer are whole …

What are the data types of C? Read More »

What are variables? What are the conditions for variables?

Variables:  A variable is a data name that may be used to store data value. A variable may take different value at different times during execution. Some examples are, average, height, class_strength. Conditions for variables:  Variable names may consist of letters, digits and the underscore character, subject to the following conditions. Must consist of only letters, …

What are variables? What are the conditions for variables? Read More »

What is keyword and identifier ? What are the rules for identifier?

Keywords: Keywords have fixed meanings and these meanings can not be changed. There are 32 keywords. Some compiler may use additional keywords that must be identified from the C manual. Keywords serve as basic building block for a program statement. Such as, auto, break, double etc. All keyword must be written in lowercase. Identifiers: The names of variables, functions …

What is keyword and identifier ? What are the rules for identifier? Read More »

Write shortly about the character set in C.

Character set: The various category of characters are called the character set. In C, the characters are grouped into the following categories. Letters: Uppercase     A………………Z Lowercase     a……………….z Digits: All decimal digits. 0…………….9 Special characters: such as,           comma.           period;           semicolon:           colon White spaces: Such as blank spaces, horizontal tab, new line etc.

RSS
Follow by Email
Scroll to Top