Function Argument in C Language

A function in C can be called either with arguments or without arguments. These function may or may not return values to the calling functions. All C functions can be called either with arguments or without arguments in a C program. When a…

Function declaration in C

Function declaration in C – Every function has its declaration and function definition. When we talk of declaration only, it means only the function name, its…

Functions in C Programming Language

Functions in C Language – To make programming simple and easy to debug, we break a larger program into smaller subprograms which perform ‘well defined…

String Functions in C Language

The header file <string.h> contains some string manipulation functions. The following is a list of the common string managing functions in C. Strlen( ) The…

Array of strings in C Language

  An array of strings are multiple strings, stored in the form of the table. Declaring an array of strings is same as strings, except…

String Formatting in C Language

  The printf function with %s format is used to display the strings on the screen. For example, the below statement displays entire string: printf(“%s”,…

String Constants in C Language

String constants have double quote marks around them and can be assigned to char pointers. Alternatively, you can assign a string constant to a char…

Initialization of Strings in C Language

The string can be initialized as follows: char name[ 8] = {‘P’, ‘R’, ‘O’, ‘G’, ‘R’, ‘A’, ‘M’, ‘\0’};   Each character of string occupies…

Declaration of Strings in C

A string in C is simply a sequence of characters. Declaration of Strings in C To declare a string, specify the data type as char…

Strings in C Language

Strings in C are a group of characters, digits, and symbols enclosed in quotation marks or simply we can say the string is declared as…

Multi Dimensional Arrays in C Language

Suppose that you are writing a chess-playing program. A chessboard is an 8-by-8 grid. What data structure would you use to represent it? You could…

Processing the Arrays in C Language

Processing the Arrays – For certain applications, the assignment of initial values to elements of an array is required. This means that the array is…

Array Subscript in C Language

Array Subscript in C is an integer type constant or variable name whose value ranges from 0 to  SIZE 1 where SIZE is the total…

Relational Operators in C Language

What is the use of Relational operators in Programming Language? Using relational operators we can compare two variables in the program. The relational operators in C are…

Arrays in C Programming

Arrays in C language provide a mechanism for declaring and accessing several data items with only one identifier, thereby simplifying the task of data management….

The goto statement in C Language

The goto statement is used to alter the normal sequence of program instructions by transferring the control to some other portion of the program. Syntax for The…

The Nested Loops in C Language

Nested Loops in C – C allows loops to be nested, that is, one loop may be inside another. The program given below illustrates the…