Pointers in C with examples | Pointers | C Tutorials

C Pointers In general all beginners have a dislike for pointer in C. If the users have experience with any programming language, they must have been familier with the concept of branching, looping, use of functions to divide the program into small managable modules or even use of arrays. Pointer is a unique feature of C language. The beginners of

Continue reading »

Unions in C Language | Learn C Language

C Unions Union is a data type with two or more member similar to structure but in this case all the members share a common memory location. The size of the union corresponds to the length of the largest member. Since the member share a common location they have the same starting address. Major difference between c unions and structure

Continue reading »

C Structure | Difference Between Array and Structure | Learn C

C Structure When we write a program, it is important to choose an optimal and best way to represent the data that further use in program. In general, scalar variables and arrays are sufficient. For example, in your program, you may want to refer to a student that holds multiple fields including Roll number, name, age, city, state and country.

Continue reading »

C Strings | String Functions in C Language

C Strings C strings is nothing but an array of characters (OR char data types). that is terminated by \0 (null character). String in/output:

string.h : Collection of functions for string manipulation. There are two ways to declare string in c language. By string literal By character array Let’s see the example of declaring string by literal.

In

Continue reading »

C Functions | Functions in C | Learn C Language

C Functions C Functions is a block of code that takes information in (symbolic names called parameters), do some computation or operations, and (usually) returns a new piece of information based on the input parameter information. A function is a group of statements that perform together on a specific task. Every C program has at least one function, which is main() (Entry

Continue reading »

C Arrays: How to Declare, Initialize and Access Elements ?

C Arrays C arrays is a collection of data items, with all of the same type and accessed using a common name. A one-dimensional(1-D) array is like a list;  A two dimensional(2-D) array is like a table. In C language there is no limits on the number of dimensions in an array, though specific implementations may. Some texts refer to

Continue reading »

Branching and Looping Statements in C | Decision Making | Control Statements

Branching and Looping in C Language We can control the flow of a program using branching and looping statements in any language. Branching statements give us code which is optionally executable, depending on the outcome of certain tests or you can say certain cases which we can define. Looping statements are used to repetition of a section of code a

Continue reading »

Data Types in C Language | What is Data Types?

C Data Types Data types specify how we enter data into our c programs and what type of data we can enter in it. C language has some predefined set of data types to handle various kinds of data that we use in our c program. C data types have different storage capacities and meaning. Different type of data types in

Continue reading »

Variable Declaration & Initialization in C Language

C Variables C variables is a named location in a memory where a c program can manipulate the data. Memory location is used to hold the value of the variable. The value of the C variables may get change in the c program. Variables are what make your c programs zoom. C variables might be belonging to any of the data type like

Continue reading »

A Brief History of C Programming Language | History of C Language

History of C Language The History of C Language was devised in the early 1970s by Dennis M. Ritchie an employee from Bell Labs (AT&T). In the 1960s Ritchie worked, with several other employees of Bell Labs (AT&T), on a project called Multics. The goal of the project was to develop an operating system for a large computer that could

Continue reading »