C++ Storage Classes

What is Storage Class in C? Storage class is used to define the scope and lifetime of a variable. It tells the compiler where to allocate memory for a variable. Every variable in C++ has a type and the storage class. The type defines its data types such as int, float, etc. While storage defines … Read more

C# Out Parameter

This method is Passing Parameters by Output. Unlike other methods that return only a single value from the method, the Out Parameter can return multiple values from a function. They are similar to reference type, except the data are transferred out rather than into it. C# provide out keyword for the out parameter type. Example: … Read more

C# Call by Reference

Here reference refers t the addresses but not the actual value. In this method, we pass the reference of the argument to the formal parameter. To pass the parameters in C#, we have a keyword called ref. It passes a reference to a memory location rather the actual value, so the changes made to this … Read more

C# Call By Value

This is passing parameters by Value. These value-type parameters in C# copy the actual parameters to the function (known as formal parameters) rather than referencing it. Whenever a method is called by passing value, a new storage location is created for each value parameter. The copies of these values are stored, hence the changes made … Read more

C# Methods

A method refers to a block of code (or a group of statements) that performs a specific task. It takes some inputs, does some computation based on that input and returns the output. They are also known as functions. The use of function in a program helps in many ways such as reuse of code, Optimization … Read more

Call by Value and Call by Reference in C++

There are two ways in which the argument can be passed through a function in C++ Programming. Call by Value Call by Reference Let’s go through call by value and call by reference in C++ language one by one. C++ call by value The method of call by value copies the actual argument to the … Read more

C++ Functions

A function refers to a block of code (or a group of statements) that performs a specific task. A function takes some inputs, does some computation based on that input and returns the output. The function can be called many times by passing different values each time. For example, let us say that you need … Read more

C# goto Statement

The goto statement is a jump statement that allows the user in the program to jump the execution control to the other part of the program. When encountered in a program, it transfers the execution flow to the labeled statement. The label (tag) is used to spot the jump statement. NOTE: Although the use of … Read more

C# continue Statement

It is a loop control statement. It is used to continue the loop in the program. The use of continue inside a loop skips the remaining code and transfer the current flow of the execution to the beginning o the loop. In case of for loop, the continue statement causes the program to jump and … Read more

C# break Statement

break statement in programming is used to come out of the loop or switch statements. It is a jump statement that breaks the control flow of the program and transfers the execution control after the loop. The use of break statements in nested loops terminates the inner loop and the control is transferred to the … Read more