Tuesday, July 29, 2008

What is file?

A series or sequence of bytes produced by a program that stored on disk and can normally be retrieved by a program for editing. A file has a starting and an end. An entry in the directory notifies the user that the file exists and an entry in the file allocation table of the disk tells the system how the file is physically distributed over the disk medium. In the narrower sense a file is for all time the product of a program (word processor, spreadsheet, etc.). In a more broad sense it is any coherent series of bytes with a beginning and an end and a name in the directory of the disk, for example, it can be a program file.

Tuesday, July 22, 2008

A program for pass by reference

/ passing parameters by reference
#include 
using namespace std;
 
void duplicate (int& a, int& b, int& c)
{
  a*=2;
  b*=2;
  c*=2;
}
 
int main ()
{
  int x=1, y=3, z=7;
  duplicate (x, y, z);
  cout << "x=" << class="str">", y=" << class="str">", z=" <<>
  return 0;
}

Output:

x=2, y=6, z=14

---------

Tuesday, July 15, 2008

Floppy Disk

These are small not fixed disks that are plastic coated with magnetic recording material. Floppy disks are characteristically 3.5″ in size(diameter) and can hold 1.44 MB of data. This moveable storage device is a rewritable media and can be reused many times.

Floppy disks are generally used to move files between different computers. The major disadvantage of floppy disks is that they can be damaged effortlessly and, so, are not very reliable.

Wednesday, July 09, 2008

Uses of function prototype in C or C++ programming language

The real use of using function prototype in C or C++ programming language is for to Informing the compiler

If a function is not earlier declared and its name takes place in an expression followed by a left parenthesis, it is implicitly affirmed as a function that returns an int and nothing is assumed about its arguments. In this case the compiler will not be able to perform compile-time checking of argument types and arity when the function is applied to various arguments. This can potentially root problems.

Tuesday, July 01, 2008

What is Extranet?

An extranet is a network or internetwork that is limited in scope to a single group or entity but which as well has limited connections to the networks of one or more other generally, but not inevitably, trusted organizations or entities (for example a company's customers may be given right to use to some part of its intranet creating in this way an extranet, while at the similar time the customers may not be well thought-out 'trusted' from a security standpoint). Technically, an extranet can as well be categorized as a CAN, MAN, WAN, or other type of network, even though, by definition, an extranet cannot contain a single LAN; it ought to have at least one connection with an external network.