Register | Sing In

New posts

Stacks in C programming Linked Lists in C programming File Input/Output in C programming Check prime numbers in C Programming C Programming Enumeration C Programming Union

Archives

2013-10 2013-09 2013-08

Archive for 2013-08

Passing Arguments to Functions by Reference in C

August 28, 2013 Posted by: GPA Views: 507

There are two methods to pass arguments to a function first one - call-by-value and second one- call-by-reference.

Read more...

C Pointers

August 28, 2013 Posted by: GPA Views: 698

What Are Pointers? Write simple example using pointers?

Read more...

Multidimensional Arrays in C programming

August 27, 2013 Posted by: GPA Views: 970

Multidimensional arrays are tables of values consisting of information arranged in rows and columns. To create table elements, we must specify two subscripts: the first identifies the element's row and the second identifies the element's column. Arrays that have two subscripts are called double-subscripted arrays. Multidimensional arrays can have more than two subscripts...

Read more...

Searching an Array with Binary Search in C Programming

August 26, 2013 Posted by: GPA Views: 1819

The linear searching method is used for small or unsorted arrays. But for large arrays linear searching is not optimal algorithm. If the array is sorted, the binary search algorithm can be used...

Read more...

Searching an Array with Linear Search in C Programming

August 26, 2013 Posted by: GPA Views: 506

Sometimes it is necessary to determine whether an array contains some value. The process of finding a particular element of an array is called searching. In this article we discuss simple linear search technique...

Read more...

Merge Sort in C Programming

August 25, 2013 Posted by: GPA Views: 539

This algorithm works based on divide and conquer rule. First it divides array in small arrays containing 1 or 2 elements. In the next steps it compare two arrays and than sort those two arrays...

Read more...

Selection Sort in C Programming

August 25, 2013 Posted by: GPA Views: 511

1 - array is divided into two parts - sorted one and unsorted one. At the beginning, sorted part is empty, while unsorted part contains whole array...

Read more...

Move Sort algorithm in C Programming

August 25, 2013 Posted by: GPA Views: 544

The Move Sort algorithm will move an identified element to the rear of the array. All elements in between the selected element and the end of the data set will move one position to the left (an index one less than its previous position in the array)...

Read more...

Insertion Sort in C Programming

August 25, 2013 Posted by: GPA Views: 584

This article show one of the algorithms for sorting arrays. Insertion sort - it is a simple sorting algorithm. It works very simple, on each step of the algorithm, we take one of the elements of the array, then we find the position to insert and insert. Also remember that the 1-st element is already sorted...

Read more...

Quick Sort in C Programming

August 25, 2013 Posted by: GPA Views: 513

Quick Sort algorithm is one of the fastest sorting algorithms. It average run time is O(n log n). Quick Sort is implemented using recursion. This article provides a demo of quick sort algorithm in C programming...

Read more...

Bubble Sort in C Programming

August 25, 2013 Posted by: GPA Views: 887

In this article we'll sort integer values of an array using bubble sort.

Read more...

Passing Arrays to Functions in C Programming

August 25, 2013 Posted by: GPA Views: 510

In some case we need to pass array to function. In this example you will pass array type integer to method "multiplyeacharrayelementby2" of type void which will take an array of type integer and size of type integer as its input, it will multiply the array elements by 2...

Read more...

Using Character Arrays to Store Strings in C programming

August 25, 2013 Posted by: GPA Views: 612

In this article we discuss how to to use character arrays for storing strings.

Read more...

Arrays in C Programming

August 25, 2013 Posted by: GPA Views: 475

An array is a collection of data of the same name and the same type. We can use it to store Integer, Boolean, Char types...

Read more...

Fibonacci Series using recursion C Programming

August 25, 2013 Posted by: GPA Views: 1274

The Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13..., Fibonacci number is the sum of the previous two Fibonacci numbers.

Read more...

Recursively Calculating Factorials in C Programming

August 25, 2013 Posted by: GPA Views: 628

For some problems, it is very useful to use functions that call themselves. Such functions are -recursive function. A recursive function is a function that calls itself.

Read more...

Random Number Generation in C programming

August 25, 2013 Posted by: GPA Views: 478

Sometimes you need random numbers to solve your problems. C provides function rand() that helps you in generation random numbers for your application. The rand function generates an integer between 0 to some random max value. Standard C that the value of random max value is least 32767, which is the maximum value for a two-byte (i.e., 16-bit) integer...

Read more...

Standard library headers in C programming

August 25, 2013 Posted by: GPA Views: 680

Each standard library has a corresponding header containing the function prototypes for all the functions in that library and definitions of various data types and constants needed by those functions.

 

Read more...

Math Library Functions in C Programming

August 25, 2013 Posted by: GPA Views: 832

Math library functions allow you to to do mathematical calculations. For it you must include the math header by using the preprocessor directive #include <math.h> when using functions in the math library.

Read more...

Number of significant digits for a floating type

August 13, 2013 Posted by: GPA Views: 551

Write a C program to find the sum of two number and write the result in three significant digits.

Read more...

Logical Operators in C programming

August 13, 2013 Posted by: GPA Views: 488

The logical operators are && (logical AND), || (logical OR) and ! (logical NOT also called logical negation).

Read more...

Increment and Decrement Operators in C programming

August 13, 2013 Posted by: GPA Views: 1164

C also provides the unary increment operator, ++, and the unary decrement operator, --...

Read more...

Assignment Operators in C programming

August 13, 2013 Posted by: GPA Views: 535

C has assignment operators for abbreviating assignment expressions. For example, the statement...

Read more...

Break statement in C programming

August 25, 2013 Posted by: GPA Views: 589

Sometimes we need to exit from from a loop immediately. For this we can use break statement and exit from the loop. The break statement is used in while loop, do - while loop, for loop and also used in the switch statement.

Read more...

Continue statement in C programming

August 25, 2013 Posted by: GPA Views: 571

In some situations we do not need to execute some statements under the loop. For this purpose, C provides the operator continue . In the case of while loops and do-while the continue statement skips the operators of the loop is not executed at the current iteration, and the transfer of control to the code that checks the condition of the loop structure. Below is an example with using continue operator.

Read more...

For Loop in C programming

August 25, 2013 Posted by: GPA Views: 541

The for loop is the type of looping construct. It also works as while loop construct but it provide the initialization, condition and the increment is same written in the for construct. The statements are written in the for body. Any loop recorded by the operator for, can be written as a while loop, and vice versa...

Read more...

Do-while Loop in C programming

August 25, 2013 Posted by: GPA Views: 572

In this lesson you will see how you can use the do-while in C.
Sometimes there is a need to perform loop body at least once, even if the boolean expression evaluates to the beginning false. For such cases, C has the loop structure do-while. Its general form of this...

Read more...

While Loop in C programming

August 25, 2013 Posted by: GPA Views: 518

In this lesson you will learn how to use of while loop statement in C.

While Loop

If you want to perform the repetitious work then you use the Loop control statement. Loop repeats a statement or a process many times according to the specified conditions...

Read more...

C programming - The switch construct in C

August 13, 2013 Posted by: GPA Views: 625

Switch is the control statement in c which controls the program and helps select conditions. It works same as If-Else Selection Statement. The difference between Switch and If-Else Selection Statement that switch is used for reduce the if statements. If we use the multiple choices better for this use Switch control

Read more...

The if Selection Statement in C

August 9, 2013 Posted by: GPA Views: 598

Selection if structure helps to choose alternate statement.The structure of an if statement is as follows:

Read more...

Equality and Relational Operators of C

August 13, 2013 Posted by: GPA Views: 634

Sometimes we must compare some values. C programming language uses Equality and Relational Operators to make a decision in a program. Example if we need to compare a and b and find which of this variable is greater . For this we can use if statement that allows a program to make a decision based on the truth or falsity of a statement of fact called a condition.

Read more...

Arithmetic operator in C

August 25, 2013 Posted by: GPA Views: 611

Most C programs use arithmetic calculations. In algebra, if we want to multiply a times b, we can simply write ab. But C, if we want to do that we must write a*b, if we write ab it show error or string "ab". Therefore, C (and other programming languages) require that using the * operator as in a * b....

Read more...

Standard Library function scanf

August 25, 2013 Posted by: GPA Views: 798

Function scanf() is a input procedure that reads stdin stream and stores the information in the variables. It can read all the built-in types and automatically convert them to the appropriate internal format...

Read more...

Escape sequence in C

August 5, 2013 Posted by: GPA Views: 1141

The escape sequence \n means newline. If we use a newline in the string calling function printf, this escape sequence sequence set the cursor to position to the beginning of the next line on the screen. More popular escape sequences are presented below...

Read more...

C Hello World using Dev C++

August 9, 2013 Posted by: GPA Views: 1168

We begin a simple C program. Our first example prints a line of text "Hello World" .

Read more...

C# How to create simple console application?

August 2, 2013 Posted by: GPA Views: 1230

How to create simple console application using C#?

To solve this problem, we will use the visual studio 2010. We present an easy way to create simple console application step by step.

Read more...

VB.net Split String

August 25, 2013 Posted by: GPA Views: 833

How to split string? Parse string and return a list of all the words it contains.

To solve this problem we can use method Split of Class String.

Read more...

Online Chat

LiveZilla Live Help

Popular posts

Function strtok in C programming Check prime numbers in C Programming C Programming Union Linked Lists in C programming File Input/Output in C programming C Programming Enumeration

RSS-subscribe

New materials

Subscribe