Executable file and its Memory Organization in a Process

The file produced after compilation of program is the executable file. It can be produced using the four stage of compilation or by bypassing them. We already know that an executable file when executing is called a process. This discussion is all about the contents of an executable file and different...
Share:

Introduction to Basics of Functions in C language

Functions are the major building blocks of a C program. Of course, every C program execution starts from main function. We have coded many programs even without a basic knowledge of a function. Let us define and understand the term function. What is a function in C language? A function is a group/block of statements that is used to perform a given task. return_datatype function_name(list_of_arguments);...
Share:

Bitwise operators for bit manipulation in C language and example programs

Bitwise operators are very much useful in bit extraction in C language. These operators are still more useful in Embedded C and bit manipulations in C. These operations include extracting the bit status, setting the bit status, resetting the bit status etc. Bitwise oeprators Following are some of...
Share:

Control statements in C language

Control statements decide the flow of execution. We know that C language is a procedural language, staring the execution with main function. Not all the times we need the sequential execution. The program should be executed based upon conditions; should be executing certain statements for several times....
Share:

Typecasting - Implicit and Explicit typecasting in C language

Type casting means converting one datatype to another datatype based upon the requirement. There are two types of type casting – Implicit type casting and Explicit type casting. Consider the following program. Implicit typecasting:  Before you execute, guess the output of the program shown...
Share:

Operators in C language

Arithmetic operators: These operators are used to perform arithmetic operations. The arithmetic operators are: +, -, *, / and %. The operations performed by these operators are well known to us. Now, go through the following program and predict the output. After this, execute the program and check...
Share:

Format specifiers and input-output data management in C language

Format specifiers in C play a major role in storing or retrieving the data. Data may be corrupted or unexpected results may be produced if proper format specifiers are not used. Have a look at the list of format specifiers supported by C on gcc compiler. Format specifiers in C on GCC Before going...
Share: