Category: C Programming

Input/Output in C programming

In this tutorial, we will learn about the ‘input output operation in C’. We will focus on the most commonly used functions of some standard library scanf() and printf(). Formatted Input: scanf() Scanf() function obtains data from input source, keyboard.   Syntax: Example: scanf() reads the data provided from standard input and process them to the specified

Strings and the Standard Library

In this tutorial, we will learn about the predefined function declared in the header file string.h. The standard library contains many functions for manipulating strings. Some of the functions: Function Work of Function strlen() Calculates the length of string strcpy() Copies a string to another string strcat() Concatenates(joins) two strings strcmp() Compares two string strlwr()

Arrays in C programming

In this tutorial, we will learn about the arrays in C programming and ways to declare, initialize and  access it. An array is a collection of data items, all of the same type and having fixed size.  We can represent array in n-dimension. For example , One dimensional Two dimensional ……… n dimensional Array declaration