Character SET / ASCII Codes in C Language: The character set is the set of characters that are supported by a programming language like C, C++, or any other language. So, the set of characters supported by a programming language will be the same as the set of characters thatContinue Reading

What will be the output of the below program? #include<stdio.h> int main() { char x[]=”CTutorials”, y[]=”CTutorials”; if(x==y) { printf(“Strings are Equal”); } else { printf(“Strings are not Equal”); } } Output: Strings are not Equal This is because in the above program we are comparing the base address of ‘x’ andContinue Reading

How to pass and return an array from a function in C? Functions make our program modular and maintainable. Big applications can have hundreds of functions. The array is a data structure to store a homogeneous collection of data. Arrays are equally important as functions. In programming, we often useContinue Reading

Multi-Dimensional Array in C Language: An array of arrays is called a multi-dimensional array. In simple words, an array created with more than one dimension (size) is called a multi-dimensional array. The multi-dimensional array can be of a two-dimensional array or three-dimensional array or four-dimensional array or more.  Syntax: type name[size1][size2]…[sizeN];Example: intContinue Reading

One Dimensional Array in C: One dimensional array is an array that has only one subscript specification that is needed to specify a particular element of an array. A one-dimensional array is a structured collection of components (often called array elements) that can be accessed individually by specifying the positionContinue Reading

What are Arrays in C? The array is defined as a collection of similar data elements. If you have some sets of integers, and some sets of floats, you can group them under one name as an array. Method of declaring an array If you want an integer-type array, let’sContinue Reading

#pragma Miscellaneous Directives in C It is a compiler-dependent pre-processor i.e. all the compilers don’t support this pre-processor. A processor directive that is not specified by ISO standard. Pragmas offer control actions of the compiler and linker. #pragma is a miscellaneous directive that is used to turn on or offContinue Reading

Conditional Compilation Pre-Processor Directives in C: In this technique, pre-processor depends on the conditional block name to be passed from the compilation process or not which is decided at the time of pre-processing. If the condition is true, then the block will be pass from the compilation process, if theContinue Reading

File Inclusion Pre-Processor (#include) Directive in C Language: By using this pre-processor, we can include a file in another file. Generally, by using this pre-processor, we are including the Header file. A header file is a source file that contains forward declaration of predefined functions, global variables, constants value, predefinedContinue Reading

Macro Substitution (#define) Directives in C: When we are working with #define at the time of pre-processing where an identifier is occurred, which is replaced with the replacement text. Replacement text can be constructed using single or multiple tokens. A token is a combination of keywords, operators, separators, constants, orContinue Reading