Functions Nested Functions (Function Within a Function) Overview In this article, we will learn about functions calling other functions. Most of us have witnessed the journey of complaints for the serious mischievous behaviours in our school. The class monitor calls the subject teacher, then the subject teacher calls the class teacher, and then the class teacher calls
Functions Practice 2 Hello🙌, Today we will be doing more questions on function. Have you solved previous questions in the Functions 1 article?? If yes, then I think now we have a fair enough idea about how to approach problems using functions. Suggestion: I will highly recommend solving these questions without looking at
Functions Practice 1 Today, We will start practicing questions on function. We may have covered the concepts behind the questions in previous articles but our main aim in these questions will be to practice writing functions. As we know just doing the theory in a practical course is not a good idea. It&
Functions Standard Library Functions Introduction So, imagine you're cooking, and you have your recipe (those are like the functions you create and define). But sometimes, you use pre-made ingredients or tools (those are like the standard library functions). In C++, there are these pre-made functions that are already there for you to
Functions Why Do We Use Arguments and Return Type in a Function? Asking questions strengthen the concepts. So, Never hesitate to ask why behind something. ✌️ Use of arguments and return type in a function Using arguments and return values in a function allows us to create a piece of code that can be used independently. It's like you create your
Functions Local Variable What are Local Variables? Let us assume, you keep your savings in a secret box and lock it. Now, a person comes and tries to take money from that box. Obviously, he/she won't be able to do that. ( Don't tell me what if they break
Functions Return Statements Overview Today, we will learn about return statements. ✌️ In the previous articles, we discussed that functions take input and provide output (known as the return value). Until now, we've been using "void" as the return type for our functions, indicating that the functions don't
Functions Function Arguments in C++ Overview In this article, we will learn about how we can make our functions dynamic. If you have read the previous article "Introduction to function", you must have noticed that the function ( BirthdayGreeting( ) ) gives a static output. Function arguments are essential in programming because they provide a way
Functions in C++ Overview Suppose you go to a restaurant, they serve you main course, juices, ice cream, fruits, water, tissue everything in a single bowl. Would you like that?? I guess it's a strong "No". We want things to be organized i.e. every dish should be in
Control Flow Practice Miscellaneous Star Patterns If you have gone through the previous articles, I can confidently say that now we are ready to solve most of the problems of star patterns. We have covered various approaches and techniques required to solve these problems. In this article, we will do mixed problems. "Developing the attitude
Control Flow Practice Pyramid Star Patterns Hi guys ✌️Today we will be practicing pyramid star patterns. If you have gone through the previous article of triangle star pattern questions, you will find these questions easy to approach and you will be able to solve them with ease. The concepts and the approach are similar to that.
Control Flow Practice Triangle Star Patterns Hello🙌, Today we will be doing triangle patterns. Have you gone through the square and rhombus star pattern article?? If yes, then I think now we have a fair enough idea about how to approach the pattern problems. These questions are more like playing games. Solving the triangle pattern problems
Control Flow Practice Square Star and Rhombus Star Patterns Reminded of your geometry classes in your school by reading the title? If you are not a maths lover, don't be afraid by reading the title. You just need to know what a square and rhombus is. I would strongly suggest doing these questions as it will enhance
Control Flow Practice Loops Practice 4 Hello 🙌 Today we will practice some more questions on loops. This will be our last exercise. After this, we are ready to solve most of the standard problems on loops and also approach new problems. As we have already done many problems in previous articles, so, I will highly recommend
Control Flow Practice Loops Practice 3 If you have gone through the previous articles, I can confidently say that now we are ready to solve most of the problems based on the loops concept. We have covered various approaches and techniques required to solve these problems. In this article, we will do some good problems based
Control Flow Practice if-else and else-if ladder Practice Just doing the theory in a practical course is not a good idea. It's recommended to practice questions on these basic concepts when we are starting our programming journey to understand the concepts properly and build intuition for advanced concepts. Trust me this will help you in the
Control Flow Break and Continue in C++ In this article we will learn about break and continue statements. The break and continue statements are used inside a loop to alter its flow. The break statement terminates the loop immediately when it is encountered. And the continue statement allows us to skip statements inside the loop. break Imagine