X


Control Flow






Q. Program to demonstrate nested if-else : binary search function that decides if a particular value x occurs in the sorted array v.





Q. Program to demonstrate Switch case (to count the occurrences of each digit, white space, and all other characters)



Loops - While and For





Q. Program to demonstrate for loop - converting a string to its numeric equivalent



Q. Program to demonstrate for loop - Shell sort for sorting an array of integers






Comma Operators (,)





Loops - Do-While




Q. Program to demonstrate Do While loop - to generate the string backwards, then reverse it






Break and Continue




Q. Program to demonstrate "Break"



Q. Program to demonstrate "Continue"






Goto and labels




Q. Program to demonstrate "goto"


Previous Next