If you were designing your own programming language would yo

If you were designing your own programming language would you minimize the number of looping constructs or provide as many as you can think of? Explain your answer.

Solution

If I design a programming language I will provide looping constructs

Reason:

1. looping construct will you in saving time and if you want to repetative execution of the statement by giving limit of execution these will be very useful

2.i will provide more number of looping construct based on conditional construct which will be more useful and applicable in the real world scenarios

3.for example if I want to print my name for 100times ,just think if there is no looping construct ,I should write 100 print statements.

4.there are some disadvantages in looping constructs if you doesnt use them properly ,tey may waste lot memory and increase time complexity if you doesnt use them properly so it is better to use them at correct situations ,then it gives efficient performance

If you were designing your own programming language would you minimize the number of looping constructs or provide as many as you can think of? Explain your ans

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site