Given an integer array arr[] a non negative integer k, print k-th distinct element in an array. The given array may contain duplicates and the output should print k-th distinct element among ...read more
Design the pattern as represented in the famous snake and ladders game. Your task is to print the pattern as represented in snake and ladders game for a given integer input N, ...read more
In this article, we will discuss the various opportunities available to a person who is well-equipped with the necessary skills in C / C ++ language. C and C ++ programming languages ...read more
In this article, we have discussed various methods to add two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 11 Method-2 : ...read more
Array is collection of items having same data type stored in contiguous memory location. An array is derived data type in C programming language which can store similar types of data in ...read more
1. C language : C was developed by Dennis Ritchie between the year 1969 and 1973 at AT&T Bell Labs to write Operating System. It is a procedural programming language and does ...read more
These two can be allowed by some compiler, but does not a standard. In both language C and C++, there is standard for it. In case ‘main()’ or ‘void main()’ : We ...read more
1. Inline : It is normal function that is inline keyword and expanded by the compiler. Its arguments are evaluated only once. Syntax of an Inline function: 2. Macro : It is ...read more
Prerequisite – C Language Introduction In C any name is called identifier. This name can be: 1. Variable name 2. Function name 3. Enum constant name 4. Micro constant name 5. Goto ...read more
Actually, “- – >” is not an operator, but this is combination of two separate operators, “- -” and “>” . So, if you write it as It will print following output, ...read more