web analytics

C Programming

What are user defined functions? What are the advantages of user defined function.

User defined functions Functions are blocks of codes to perform specific tasks and return the result. However it is not mandatory for a function return anything and also a function is not limited to performing one task only. User defined functions are basic building blocks of a program and can be found in the basic …

What are user defined functions? What are the advantages of user defined function. Read More »

3 Differences between entry and exit controlled loops with examples. Entry controlled loops VS Exit controlled loops

The differences between the entry and exit controlled loops are as follows.Read More: What are the entry controlled and exit controlled loops? No. Topics Entry controlled loops Exit controlled loops 01 Test condition Test condition appears at the beginning. Test condition appears at the end. 02 Control variable Control variable is counter variable. Control variable is …

3 Differences between entry and exit controlled loops with examples. Entry controlled loops VS Exit controlled loops Read More »

Compare among the three loops. FOR loop VS WHILE loop VS DO….WHILE

Comparison among the three loop:  The comparison among the three types of loops for loop, while loop and do….while loop is given below. Suggested Reading: What are the entry controlled and exist controlled loops? What are the counter controlled and sentinel controlled loops? No. Topics For loop While loop Do…while loop 01 Initialization of condition variable In …

Compare among the three loops. FOR loop VS WHILE loop VS DO….WHILE Read More »

Write down the steps of looping process.

Steps of looping process: A looping process, in general, would include the following four steps. Setting and initialization of a condition variable. Execution of the statements of the loop. Test for a specified value of the condition variable for execution of the loop. Increasing or updating the condition variable. The above given steps may come at …

Write down the steps of looping process. Read More »

What are the counter and sentinel controlled loops?

Based on the nature of the control variable and the condition or limit, the loops can be of two general categories; counter controlled and sentinel controlled loops. Counter controlled loops are where we know the number of loop executions beforehand. Unlike counter controlled loops, in sentinel controlled loops the number of loop executions in unknow at the beginning and depends on decisions made inside the loop.

What is loop

Loop A loop is a particular area of a program where some executable statements are written which gets execution by testing one or more conditions. So, in looping, a sequence of statements is executed until some conditions for termination are satisfied. A program loop therefore consists of two segments; the body of the loop and …

What is loop Read More »

What are the static arrays and dynamic arrays

Static arrays : The process of allocating memory at compile time is known as static memory allocation and the arrays that receives static memory allocation are called static arrays. This approach works fine as long as user know that what the data requirements are. Dynamic arrays : The process of allocating memory at run time is known …

What are the static arrays and dynamic arrays Read More »

RSS
Follow by Email
Scroll to Top