computer language
hi welcome in computer's world.Here you get the information about computer programing language such as C,c++ java, Data structure, visual basic and many more . You also find computer hardware,computer networking,database management system related things and its study.
Thursday, September 16, 2010
Wednesday, August 25, 2010
Saturday, August 21, 2010
Friday, August 20, 2010
LIBRARY IN C
WHAT IS LIBRARY IN C:
A library is collection of in built functions to perform various operations.They are grouped together as a single unit for re-usability.
If the programmer wishes to use a function contained in library,they only need to specify the function name,following the function prototype i.e, correct call or return condition.Program must #include statement at the beginning of the program.This is known as a header file.The compiler will then internally link the standard library code by default.
SOME COMMONLY USED HEADER FILES ARE:
stdio.h - for file input and output operation
string.h - for string operation
time.h - for manipulating date and time
stdlib.h - for memory management utility functions like calloc() and malloc().
Wednesday, October 21, 2009
RAGGED ARRARY
The two-dimensional array character type arrays occupy a fixed amount of memory space for each row that is rarely needed .Therefore , instead of making each row fixed number of characters . We can make it a pointer to a string of varying length.
The character Arrays with the rows of varying length are called "RAGGED ARRAY " and are better handled by pointer . For example :
char *cname[3] = {"india", "nepal" ,"bhutan"}; // is the declaration and intialisation of Ragged Array.
Labels:
pointer,
pointer in C,
ragged array,
string pointer
Saturday, October 17, 2009
FILE
COMMAND LINE ARGUMENT :- Command line argument is parameter supplied to a program when the program is invoked . This parameter may represent a File name the program should process . In fact main() can take two argument (from the operating system) called ARGC and ARGV .
The variable argc is an argument counter that counts the number of Argument on the commands line .Whereas argv is an argument vector and represent an array of character pointers that points to the command line argument .The size of this array will be equal to the value of argc .
Labels:
argc,
argument counter,
argument vector,
argv,
command line argument,
file in c
Subscribe to:
Posts (Atom)