C

C

C Language - The Preprocessor

In this tutorial you will learn about C Language - The Preprocessor, Preprocessor directives, Macros, #define identifier string, Simple macro substitution, Macros as arguments, Nesting of macros, Undefining a macro and File inclusion. A unique feature of c language is the preprocessor. A program can use the tools provided by preprocessor to make his program easy to read, modify, portable and more efficient. C Language - The Preprocessor...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

C Programming - Dynamic Memory allocation

In this tutorial you will learn about C Programming - Dynamic Memory Allocation, Dynamic memory allocation. Memory allocations process, Allocating a block of memory, Allocating multiple blocks of memory, Releasing the used space and To alter the size of allocated memory. In programming we may come across situations where we may have to deal with data, which is dynamic in nature. The number of data items may change during the executions of a program. The number of customers in a queue can increase...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

C Programming - Pointers

In this tutorial you will learn about C Programming - Pointers, Pointer declaration, Address operator, Pointer expressions & pointer arithmetic, Pointers and function, Call by value, Call by Reference, Pointer to arrays, Pointers and structures, Pointers on pointer. In c a pointer is a variable that points to or references a memory location in which data is stored. Each memory cell in the computer has an address that can be used to access that location so a pointer variable points to a memory...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Programming - Structures and Unions

In this tutorial you will learn about C Programming - Structures and Unions, Giving values to members, Initializing structure, Functions and structures, Passing structure to elements to functions, Passing entire function to functions, Arrays of structure, Structure within a structure and Union. Arrays are used to store large set of data and manipulate them but the disadvantage is that all the elements stored in an array are to be of the same data type. If we need to use a collection of different...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

C Programming - File management in C

In this tutorial you will learn about C Programming - File management in C, File operation functions in C, Defining and opening a file, Closing a file, The getw and putw functions, The fprintf & fscanf functions, Random access to files and fseek function. C supports a number of functions that have the ability to perform basic file operations, which include: 1. Naming a file 2. Opening a file 3. Reading from a file 4. Writing data into a file 5. Closing a file C Programming - File management in...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

C Programming - Functions (Part-II)

In this tutorial you will learn about C Programming - Functions (Part II) Nesting of functions, Recursion, Functions and arrays, The scope and lifetime of variables in functions, Automatic variables, External variables, Multi-file programs, Static variables and Register variables. Nesting of functions: C permits nesting of two functions freely. There is no limit how deeply functions can be nested. Suppose a function a can call function b and function b can call function c and so on. Consider the...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

C Programming - Functions (Part-I)

In this tutorial you will learn about C Programming - Functions (Part-I) Functions are used in c for the following reasons, Function definition, Types of functions, Functions with no arguments and no return values, Functions with arguments but no return values, Functions with arguments and return values, Return value data type of function and Void functions. The basic philosophy of function is divide and conquer by which a complicated tasks are successively divided into simpler and more manageable...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

C Programming - Handling of character string

In this tutorial you will learn about Initializing Strings, Reading Strings from the terminal, Writing strings to screen, Arithmetic operations on characters, String operations (string.h), Strlen() function, strcat() function, strcmp function, strcmpi() function, strcpy() function, strlwr () function, strrev() function and strupr() function. A string is a sequence of characters. Any sequence or set of characters defined within double quotation symbols is a constant string. In c it is required to...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

C Programming - Linked Lists

In this tutorial you will learn about C Programming - Linked Lists, Structure, Advantages of Linked List, Types of linked list and Applications of linked lists.A linked list is called so because each of items in the list is a part of a structure, which is linked to the structure containing the next item. This type of list is called a linked list since it can be considered as a list whose order is given by links from one item to the next. C Programming - Linked Lists...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

C Programming - Managing Input and Output Operations

In this tutorial you will learn about Single character input output, String input and output, Formatted Input For Scanf, Input specifications for real number, Input specifications for a character, Printing One Line, Conversion Strings and Specifiers, Specifier Meaning. One of the essential operations performed in a C language programs is to provide input values to the program and output the data produced by the program to a standard output device. We can assign values to variable through assignment...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Full C Archive