Strings
A string is a collection of characters and consider as a single data item. The string example is as follows: “Jalandhar” It is a string every string is inserted in …
The goto statement is use to jump unconditionally from one statement to another in a program. There are two types of jumps one in forward jump and second is backward …
Conditional operator statement: The conditional operator statement is used with the combination of ? and : and this is known as conditional operator. Syntax: conditional expression ? expression1 : …
Switch statement: The problem in if-statement is the complexity to read and follow. Even it may be confuse the programmer who designed it. The switch statement tests the value of …
if statement: The if statement is use to control the flow of the execution of statement. If the expression is true then it transfers the control to the particular statement. …
while loop: while loop is the simplest form of loop, and it is entry controlled loop statement. Syntax: while(test condition) { Body of loop } At the first, condition is …
Two dimensional or multidimensional: In the single dimensional array we can store only values in the form of list, but sometimes we needs to process the data in the form …
one dimensional: The one dimensional array is the simplest form of the array. And is used for the multiple values in a single variable. Declaration syntax: data-type array-name[size]; e.g: int …