In this post I will describe Cyclomatic complexity in Software Testing and how to calculate code complexity using Cyclomatic complexity. I have included few examples to understand how the code complexity is calculated. Also, I have mentioned advantages of using Cyclomatic Complexity. Definition: Cyclomatic complexity (or conditional complexity) is a … [Read more...]
One’s Complement, Bitwise AND, OR, XOR Operators In C
In this post, I will describe about One's Complement Operator in C programming, Right Shift Operator in C programming, Bitwise AND Operator, Bitwise OR Operator, What is Bitwise XOR Operator in C programming, and showbits( ) Function in C programming. One's Complement Operator in C programming: One’s compliment mean that all the 1’s present in number will be changed to … [Read more...]
Low Level Disk I/O, Opening A File, Bitwise Operators In C
In this post, I will discuss about Low Level Disk I/O in C Programming, Low level disk I/O function has the below mentioned advantages, Using argc and argv, Standard I / O Devices in C programming, What is I/O functions Redirection and Bitwise Operators in C Programming. Low Level Disk I/O in C Programming: Using low level disk I/O data cannot be written as individual … [Read more...]
File Opening Modes, Text And Binary Files In C Programming
In this post, I will discuss about Writing to a File in C using a function, File Opening Modes in C, String (line) I / O in Files: in C programming, Record Input-Output Files using C program, Text Files and Binary Files in C programming, Text versus Binary Mode files- Newlines in C programming, End of File read in Text Mode and Binary mode files and Time versus Binary Mode- … [Read more...]
Unformatted Console I/O Functions, Gets, Puts In C Language
In this post, I will discuss about Unformatted Console I/O Functions, Using gets( ) and puts( ) in C programming, File Operations: A program to display content of file, Opening a File using function in C, File handling and File allocation concepts and Reading from a File in C programming language. Unformatted Console I/O Functions: Unformatted console I/O are the function … [Read more...]
Structure Declaration, Console Input Output Functions In C
In this post, I will discuss about Important Points for Declaring a Structure, How Structure Elements are Stored, Array of Structures, Types of Input / Output, Console Input-Output Functions, Formatted Console Input / Output Functions, Format Specification, Optional Format Specifiers, and Escape Sequences in C language. Important Points for Declaring a Structure: Below … [Read more...]
Strings, scanf, Standard Library Functions In C Language
In this post, I will discuss about strings, Program to Demonstrate Printing of a String, %s Format Specifier, scanf( ), Standard Library String Functions in C, strlen( ) function, strcpy( ) function, Function to concatenate a string, Function of comparison of two stings in C, Structure (Grouping of data type together in C), and Declaring a Structure in C programming. What … [Read more...]
Array Initialization, Two And Three Dimensional Arrays in C
In this post, I will discuss Array Initialization, Array Elements in Memory, Bounds Checking, Passing Array Elements to a Function, Passing an Entire Array to a Function, Two Dimensional Array, Array of Pointers, Arrangement of the Array of Pointers in Memory and Three-Dimensional Array in C language. Array Initialization: We will be discussing in this article about … [Read more...]
C Programming Under Linux – Zombies And Orphans Process
What is Linux? Linux operating system is clone of Unix operating system. Kernel of Linux was developed from scratch by Linus Torvalds with assistance from a loosely-knit team of programmers across the world on internet. It has got all the features that would be expected in a modern operating system. Unlike windows or Unix, Linux is totally open source. Kernel of Linux is … [Read more...]
C Programming: Relational, Logical Operators, If Statement
In this post I will describe about Integer and Float Conversions, Hierarchy of Operations, Control Instructions in C, if statement, Program Demonstrating if and Relational Operators, Program Demonstrating if and Relational Operators, Flow Demonstrating if and Relational Operators, Nested if-else statements, Forms of if statement, Use of Logical Operators and The ! operator in C … [Read more...]