Showing posts with label C. Show all posts
Showing posts with label C. Show all posts

Tuesday, 25 August 2015

2D array for structers

creating 2D array for structers using Dynamic memory allocation.

Sunday, 17 May 2015

C : Implementation of printf()

printf() is one of the variable argument list function. A variable argument list function is that it can take varying  number of arguments. printf() needs min of one fixed argument, that should ba a string. This programe is a small implementation of printf(). Here i am not writing any driver level programme. Using C functions only the code is written.


  

C : Stack implementation using array

Stack is one of the data structure. Follows one approach known as LIFO(Last In First Out). Stack palys vital role in programming, especially in recursive programming. Whenever a programe is loaded into RAM four blocks of memory is created (stack, heap, code, data).  Return address, Formal arguments, are stored in this stack section. So this programe's aim is to make a small prototype of stack.

Saturday, 16 May 2015

C : repalcing one word with another word in text file

This programe repalces any word in the text file with word given by user .

C : Implementation of atoi() function.

atoi() function converts string into integer. String should be pass to the atoi() as an argumant.
Prototype: int atoi(const char *arg);


C : Implementation of atof() function.

atof () functio converts its argumnt  arg to double.
Prototype: double atof(const char *arg)