C

Internal Structure of C Language

#include < stdio.h > The first line of the program #include < stdio.h > is a preprocessor command, which tells a C compiler to include stdio.h file before going to actual compilation. #include directives are not C statements. They are commands to the pre-processor which runs prior to the compiler. Their job is to set …

Internal Structure of C Language Read More »

Data Types in C

Integer Data Types There are many different types of data. Variables are classified according to their data type, which determines the kind of information that may be stored in them. Integer variables can only hold whole numbers. Integers are whole numbers like -2, 19, and 24. Floating-point numbers have a decimal point like -2. 35, …

Data Types in C Read More »

Operators In C

Arithmetic Operators In C Here are C’s five basic arithmetic operators: The +operator adds its operands. For example, 4 + 20 evaluates to 24. The -operator subtracts the second operand from the first. For example, 12 – 3 evaluates to 9. The *operator multiplies its operands. For example, 28 * 4 evaluates to 112. The …

Operators In C Read More »

Looping concepts in C

Looping concepts in C The while Loop A while loop statement repeatedly executes a statement that is in the brackets as long as a given condition in brackets is true and it will stop executing when the condition becomes false. This diagram shows the basic syntax of while loop execution and below there is a …

Looping concepts in C Read More »