C Tutorial
C Structures
An array or a variable can store elements of same data type, but they cannot store data of multiple data types. C programming language provides with a user-defined data type called a Structure. Structure Definition “A structure is a group of different data types which may or may not be the same.” Declaring a Structure … Read more
C Storage Classes
Variables point to a memory location that has an address and a value stored. Other than this value, a variable also has a storage class. The C storage classes decide the characteristics of a variable during the execution of a program – the characteristics are storage location, initial value stored, scope, the lifetime of the … Read more
C Data Types
Data types are a very important concept in programming languages. You can choose the right kind of variable types for your program. The data types depend on the compiler which creates machine codes suitable for 16-bit or 32-bit processors. Sometimes when the processor has backward compatibility, then a 32-bit processor can run a 16-bit machine … Read more
C Global And Local Variables
C program is a block of statements that are enclosed within { }. Each block has its own scope and it decides which variable to use that falls under its scope. In other words, two variables with the same name can exist in the same program if they are declared in different blocks. The variables … Read more
C Variables And Constants
In a C program, some values do not change and some changes with the execution of the program. A constant never changes throughout the program and the variable changes frequently, hence the name. Types of Constants Constants can be classified into different types such as numeric constants and character constants. The following figure depicts the … Read more
C Macro Expansion
You learned about C preprocessor directives and its components earlier. These directive are of four types – macro expansion, file inclusion, conditional compilation ,and other miscellaneous directives. The macro expansion is the most common and popular C preprocessor directives. Before you begin, learn a bit about the preprocessor directives. If you are familiar with the … Read more
How to Compile a C program using Turbo C++?
In the previous article, you learned how to install a Turbo C++ compiler on a windows system. After installation you must write your first C program ,and compile it. In this article you will learn to compile your first C program. Prerequisite to this article is installing turbo C++ compiler on your windows computer. How … Read more
C Preprocessor Directives
There are a lot of components or processors involved inside or outside the C compiler that affects the compilation process. One of them is the C preprocessor. The preprocessor executes its own commands to the program before it is sent to the compiler for compilation. The preprocessor commands are called preprocessor directives. Though the directives … Read more
C Conditional Operators
In C programming language, sometimes it necessary to change the flow of the program.The C offers a special operator called a Conditional operator to do that. Before you start learning about the conditional operator, be familiar with C programming basics. Skip this step if you already know the basics. C program Structure How to install … Read more