C


Sep

12

2013
images

Code Optimization

Optimization is the process of transforming a piece of code to make more efficient in terms of time or space without changing its output or side-effects. The only difference visible to the code’s user should be that it runs faster and/or consumes less memory. And the readability of the code also should be considered. We can directly come to the topic with out much more introduction Use double and single quotes wisely […]

read more

Jul

12

2013
premjith

Some Basic questions in C

1. Which mathematical operators are in the correct order ? Ans: Addition, Division, Modulus Division, Multiplication, Modulus Modulus, Multiplication, Subtraction Modulus, Addition, Division 2. Which of the following are NOT relational operators ? Ans: 3. The first expression in a for loop is ? Ans: The test expression. The step value of the loop. The value of our counter variable. None of the above. 4. What is the break statement used for […]

read more

Jul

12

2013
premjith

Structure of C program

As previously mentioned C is a structured programming language. So we want to learn the structure of C to deal with C. When we write a program in We want to follow the following structure otherwise the program may not work properly. Documentation Section The Documentation section contains the comments and remarks. The comments consist of set of comment lines giving the name of the program or convey the logic of the […]

read more

Jul

12

2013
premjith

Basics Of C

A programming language is designed to process certain kinds of data consisting of numbers, characters and strings. It provides useful output known as information. I hope all you know the difference between data and information. From the above statement itself we get the difference. The processing of data is accomplished by executing a sequence of precise instructions called a program. That is in simple language program is a set of instructions used […]

read more

Jul

12

2013
premjith

History of C

The origin of C is closely related to the development of Unix operating system (OS). The C language was originally developed in 1970’s by Dennis Ritchie at Bell Laboratories. C is a general purpose structured programming language. General purpose means can use to develop anything and structured means it has particular structure to deal with or writing the program. We come to that latter. C is considered as a low level language […]

read more