C
What is Array? Array is collection of more than one element of same type at a same memory location. Declaration Syntax: Data Type arrayname[size]; Here, size represent number elements stored in Array. This size is maximum so, user can enter equal or less elements but nor more than elements. rn[0] rn[3] rn[2] rn[1] All Elements […]
What is Switch? Switch is used to select any one from multiple choice. The switch statement allows us to execute one code block among many alternatives. A switch statement tests the value of a choice variable and compares it with multiple cases. Once the case match is found, a block of statements associated with that particular case is executed. […]
What is variable? Variable is a memory location where we can store the data. Why need variable? In programming we can’t use data directly. We have to store the data first(on which we are going to process) in memory . This memory is allocated as per Data Type. Features of Variable: The variable can store […]
What is Data Type and Why Data Type Need? In programming there are different types of data used for example 987, 876.34, xyz, Hello World, %, # etc. As a human being we can differentiate that these all data are different but machine can’t differentiate data, so, to differentiate data they have been categorized in […]
What is Loop in Programming? To write once, but execute more than one time is called Loop in Programming. This will save time of developer to write n time. 3 type of Loop: for while do-while We see one by one in detail. There are 3 sections in each loop: there is loop variable i/j […]