Author: admin

  • Function Call by Reference in C

    There are two ways in which a function can be called: (a) Call by Value and (b) Call by Reference. In this chapter, we will explain the mechanism of calling a function by reference. Let us start this chapter with a brief overview on “pointers” and the “address operator (&)”. It is important that you…

  • Strict Mode

    Strict Mode in JavaScript In JavaScript, the strict mode is introduced in the ES5 (ECMAScript 2009). The purpose behind introducing the “strict mode” is to make the JavaScript code more secure. The ‘use strict‘ literal expression is used to add the strict mode in the JavaScript code. It removes the silent errors from the code, such as…

  • Function Call by Value in C

    In C language, a function can be called from any other function, including itself. There are two ways in which a function can be called − (a) Call by Value and (b) Call by Reference. By default, the Call by Value mechanism is employed. Formal Arguments and Actual Arguments You must know the terminologies to…

  • Main Function

    In a C program, the main() function is the entry point. The program execution starts with the main() function. It is designed to perform the main processing of the program and clean up any resources that were allocated by the program. In a C code, there may be any number of functions, but it must have a main() function. Irrespective of its place…

  • Type Conversions

    JavaScript Type Conversions Type Conversions in JavaScript refer to the automatic or explicit process of converting data from one data type to another in JavaScript. These conversions are essential for JavaScript to perform operations and comparisons effectively. JavaScript variables can contain the values of any data type as it is a weakly typed language. There are…

  • Data Types

    JavaScript Data Types Data types in JavaScript referes to the types of the values that we are storing or working with. One of the most fundamental characteristics of a programming language is the set of data types it supports. These are the type of values that can be represented and manipulated in a programming language. JavaScript data…

  • Functions in C

    A function in C is a block of organized reusuable code that is performs a single related action. Every C program has at least one function, which is main(), and all the most trivial programs can define additional functions. When the algorithm of a certain problem involves long and complex logic, it is broken into smaller,…

  • Goto Statement in C

    What is goto Statement in C? The goto statement is used to transfer the program’s control to a defined label within the same function. It is an unconditional jump statement that can transfer control forward or backward. The goto keyword is followed by a label. When executed, the program control is redirected to the statement following the label.If the label points to…

  • Constants

    JavaScript Constants JavaScript constants are the variables whose values remain unchanged throughout the execution of the program. You can declare constants using the const keyword. The const keyword is introduced in the ES6 version of JavaScript with the let keyword. The const keyword is used to define the variables having constant reference. A variable defined with const can’t be redeclared, reassigned. The const declaration have block…

  • Continue Statement in C

    The behaviour of continue statement in C is somewhat opposite to the break statement. Instead of forcing the termination of a loop, it forces the next iteration of the loop to take place, skipping the rest of the statements in the current iteration. What is Continue Statement in C? The continue statement is used to skip the execution of the rest…