- An array is the collection of similar data type which is used to store the information in a random way.
- An array is a derived data type i.e. it is derived from the inbuilt data type.
- The size of the array is fixed i.e. the size of an array is static that can not be changed at the time of execution. The size of an array is defined at the time of compilation and it should be an positive integer value.
A blog About Computer Science and has many topics or post related to networking, hardware, software and more about in Computer science.
Sunday, March 22, 2015
What is an array ?
Wednesday, March 18, 2015
What is rewind() function?
- It is used to sets the position to the beginning of the file.
- It takes a file pointer and resets the position to the start of the file.
- Whenever a file is opened for reading and writing, a rewind is done implicitly.
What is ftell() function?
- It is used to gives the current position in the file (in terms of bytes from the start).
- ftell() takes a file pointer and return a number of type long, that corresponds to the current position.
What is fseek() function ?
- It is used to sets the position to a desired point in the file.
Ex:
fseek (file_pointer, offset, position);
- File pointer is the pointer to the file concerned.
- Offset is a number or variable of type long.
What is putw() function?
- It is used to writes a integer to a file.
- It write only one value at a time.
- It is integer oriented function.
- It is similar to putc().
What is getw() function ?
- getw() used to reads a integer from a file.
- It read only one value at a time.
- It is integer oriented function.
- It is similar to getc().
What is fprintf() function ?
- It is used to writes a set of data values to a file.
- It can handle a group of mixed data simultaneously.
What is putc() function ?
- putc() is used to writes a character to a file.
- It writes the character one by one that is one character at a time.
- The file pointer moves by one character position for every operation of putc().
What is getc() function ?
- getc() is used to reads a character from a file.
- The file pointer moves by one character position for every operation of getc().
- The getc() will return an end – o f – file marker EOF, when the end of file has been reached.
What is fclose() function ?
- Closes a file which has been opened for use.
- A file must be closed as soon as all operation on it have been completed.
- If you not close a file after the operation, data or file can be damaged.
What is fopen() function ?
- It creates a new file for use
- Open an existing file for use
- It include file name, data structure, and mode (purpose)
What is file modes ?
- Mode specifies the purpose of opening the file.
- Mainly mode divided into 3 types Read (r), Write (w), and Append (a).
- Read mode is used to opening the file for reading only.
Monday, March 16, 2015
What is formal arguments?
The formal arguments are the type of argument. It receives
the information from the actual arguments at the time of function call and used
the information in function. The formal arguments are those arguments that are
declared in the function definition and used within the function body.
What is continue statement ?
The continue statement is a jumping statement which is used
to jump to the beginning of the loop i.e. when continue is encountered inside any loop, execution
(control) automatically jump or pass to the beginning of the loop and remaining
loop statements are skipped that come after the continue statement.
What is arguments?
The information pass or sent by the program to a function at
the time of function call is done by using arguments. The arguments are the
data items that are sent to the function as a information at the time of
calling. It is also called parameters.
What is bitwise shift operator?
The bitwise shift operator is used to shift (move) bits i.e.
it moves data bits right or left and the position of shifted (moved) bits will
be filled by 0s (zero’s).
What is bitwise right shift operator ?
The bitwise right shift (>>) operator is used to shift
(move) bits to the right side. The bitwise right shift operator is represented
by ‘>>’ symbol. It shifts the n bits of operand to the right side.
What is bitwise left shift operator ?
The bitwise left shift (<<) operator is used to shift
(move) bits to the left side. The bitwise left shift operator is represented by
‘<<’ symbol. It shift the n bits of operand to the left side.
What is bitwise OR operator ?
The bitwise OR operator (|) is a bitwise logical operator.
It is represent by vertical bar (^) symbol. It works with two operands I.e. it
is a binary operator. The comparison of bits started from the least significant
bit. It works with operands bit by bit.
Subscribe to:
Posts (Atom)