Skip to main content

Posts

Showing posts from March, 2021

Looping Statements in C | while, do-while and for Loop

Looping Statements in C | while, do-while and for Loop In C language, looping statements allow you to perform repeatition of a particular block of code.. In the process of looping, basically 4 steps are performed: Initialization of control variable. Execution of statements in the loop. Updation of control variable. Condition Testing. Looping statements can be easily divided into 2 categories: Entry Control Loop: Entry Control loop tests the condition before execution. If the condition is false then the loop gets terminated.  Example :  while loop for loop Exit Control Loop: In this looping, condition is tested after the execution of statements. It means that , first time, execution of statement is done unconditionally. Example: do-while loop   Let us see all the three looping statements in detail with example. 1. The while statement : The while statement is an entry controlled looping statement which tests the condition after the initialization of control variable. If t...

Difference between Structure and Array in C

Difference between Structure  and Array in C Structure and Array both are very important data types of C programming language that are used for creating efficient programs. On one hand Structure allows grouping of different data types and on the other, Array provides the facility of creating sequence of similar datatype. Some important differences between Structure and Array are as follows : S.No. Structure Array 1 Structure is a user defined datatype. Array is a derived datatype. 2 Structure can have members of different datatype. Array members are always of similar datatype. 3 Structure gives  a flexibility of creating memory for different  datatype. Array can store list of values or table of values of homogeneous datatype. 4 Nesting of Structure is possible. Nesting of Array is not possible. 5 For declaring a Structure Struct keyword is used. Arrays are declared u...

Maurya Vansh ki sthapna । Maurya Vansh Gk | Maurya Vansh Hindi | Indian History GK

рдоौрд░्рдп рд╕ाрдо्рд░ाрдЬ्рдп | рдоौрд░्рдп рд╕ाрдо्рд░ाрдЬ्рдп рдХ्рдпा рдеा? | рдоौрд░्рдп рд╡ंрд╢ рдоें рдХौрди-рдХौрди рд╕े рд░ाрдЬा рд╣ुрдП рдеे?Maurya Vansh ki sthapna рдоौрд░्рдп рд╕ाрдо्рд░ाрдЬ्рдп рднाрд░рдд рдХा рд╕рдмрд╕े рдкрд╣рд▓ा рдорд╣ाрди рд╕ाрдо्рд░ाрдЬ्рдп рд╣ै। рдЗрд╕рдоें рдЪंрдж्рд░рдЧुрдк्рдд, рдмिंрджुрд╕ाрд░ рдФрд░ рдЕрд╢ोрдХ рдЬैрд╕े рдорд╣ाрди рд╢ाрд╕рдХ рд╣ुрдП।  рд╕рдмрд╕े рдкрд╣рд▓े рдЬाрдирддे рд╣ैं рдЙрди рд▓ेрдЦों рдХे рдмाрд░े  рдоें рдЬो рдоौрд░्рдп рд╡ंрд╢ рдХी рдЬाрдирдХाрд░ी рд╣ैं : рдЗрд╕ рд╡ंрд╢ рдХे рдк्рд░ाрд░ंрдн рдХी рдЬाрдирдХाрд░ी рд╡िрднिрди्рди рд▓ेрдЦों рд╕े рдоिрд▓рддी  рд╣ै  рдЬिрдирдоे рд╕рд░्рд╡ाрдзिрдХ рдорд╣рдд्рд╡рдкूрд░्рдг рдЪाрдгрдХ्рдп рдХा рдЕрд░्рдерд╢ाрд╕्рдд्рд░ рд╣ै  рдЬैрди рдЧ्рд░ंрдеों рдоें рднрдж्рд░рдмाрд╣ु рдХा рдХрд▓्рдкрд╕ूрдд्рд░ рдФрд░ рд╣ेрдордЪंрдж्рд░ рдХा рдкрд░िрд╢िрд╖्рдЯ рдкрд░рд╡ाрдг рдЗрд╕рдХी।  рдмौрдж्рдз рдЧ्рд░ंрдеों рдоें рджीрдкрд╡ंрд╢, рдорд╣ाрдЯीрдХा рд╡ рдорд╣ाрдмोрдзिрд╡ंрд╢ рдм्рд░ाрдо्рд╣рдг рд╕ाрд╣िрдд्рдп рдоेंрд╡िрд╢ाрдЦрджрдд्рдд рдХा рдоुрдж्рд░ाрд░ाрдХ्рд╖рд╕, рд╕ोрдорджेрд╡ рдХा рдХрдеाрд╕рд░िрдд्рд╕ाрдЧрд░ рдФрд░ рдкрддंрдЬрд▓ि рдХा рдорд╣ाрднाрд╖्рдп।  рдпूрдиाрдиी рд▓ेрдЦрдХों  рдоें рдк्рд▓िрдиी, рдк्рд▓ूрдЯाрд░्рдХ , рд╕्рдЯ्рд░ेрдмो , рдЬрд╕्рдЯिрди , рдбिрдУрдбोрд░рд╕ рдЗрдд्рдпाрджि рдиे рдЗрд╕ рд╡ंрд╢ рдХा рдпूрдиाрдиी рд▓ेрдЦों рдоें рд╡рд░्рдгрди рдХिрдпा рд╣ै। рд╕рдмрд╕े рдкрд╣рд▓े рд╡िрд▓िрдпрдо рдЬोंрд╕ рдиे рд╕ैंрдб्рд░ोрдХॉрдЯोрд╕ рдХी рдкрд╣рдЪाрди рдЪंрдж्рд░рдЧुрдк्рдд рдоौрд░्рдп рд╕े рдХी। рдЪंрдж्рд░рдЧुрдк्рдд, рдмिंрджुрд╕ाрд░ рдФрд░ рдЕрд╢ोрдХ рдЬैрд╕े рд░ाрдЬा  рд╡ंрд╢ рдХी рдорд╣ाрдирддा рдХे рдж्рдпोрддрдХ рд╣ैं, рдЗрдирд╕े рд╕рдо्рдмंрдзिрдд рдорд╣рдд्рд╡рдкूрд░्рдг рдЬाрдирдХाрд░ी рдиिрдо्рдирд▓िрдЦिрдд рд╣ै : рдЪंрдж्рд░рдЧुрдк्рдд рдоौрд░्рдп 321 рдИреж рдкूреж - 32...