Features of C

Features and advantages of C Simple and easy to learn. Fast, Powerful & Efficient. Procedural Language Portable language. Structured Programming Language Rich Library. Mid-Level Programming Language. Pointers/Recursion. Extensible 1. Simple and easy to learn.C is simple and easy to learn language as it provides a structured Language approach (i.e. to break the problem into modules), its rich set … Read more

C – nested if statements

This statement allows the user to use if block inside the other if block. And the inner if statement is executed only if the outer if statement’s condition is true. Syntax Syntax of nested if statement in C: nested if Flowchart: Example of nested if statement in C: The output of nested if statement in C. … Read more

Java – this Keyword

In Java, this is a reference variable, this can be used inside any method or constructor to refer to the current object. Following demonstrating the use of this Use of this Keyword in constructor: Output: Name: Daniel marks:90 Note: that, Java does not allow to declare two local variables with the same name inside the same or … Read more

Java – StringBuffer

StringBuffer and StringBuilder in java is a class that provides the mutable(changeable) ability.Since a String is immutable that is its value cannot be changed once the object is created. So to modify the String, StringBuffer and StringBuilder class is used. Both these classes work fine but the difference is that the StringBuffer is thread-safe whereas … Read more

C – Variables

What are variables in C? The variable is the basic unit of storage that holds the value while the program is executed. We can also say that it is a name given to the memory location. A variable is defined by data-types provided by C. It may belong to any data-types in C that can be … Read more

Java – What is Static and Dynamic Binding?

The Association of the method call to the method body is known as binding. There are two types of binding in java: Static binding. Dynamic bindinng. 1. Static Binding or Early Binding in Java: The binding that resolved at compile time is known as Static Binding or Early Binding. There are three methods that cannot … Read more

C – Program Structure

Before we start the basic building blocks of the C programming language, we must know the Program Structure of C for the building of programs. A C program basically consists of the following parts: Preprocessor Commands. Functions. Variables. Statement & Expressions. Comments. Let see the basic structure below to print Hello World: Now, let’s know … Read more

Java – Strings

A string is defined as a series of characters or an array of characters in java. They are present within the double quote. Create a String: One way to create a String is to directly declare it within the double quote that is by String Literal: Like any other object, it is possible to create … Read more

Java – Decision Making Statements

The decision-making statement in Java is used when the user wants a specific block of code to be executed when the given condition is fulfilled. Java programming language provides the following types of decision-making statements: if statement  if-else statement  nested-if statement  if-else-if ladder statement  switch-case statement  if statement Among the decision making statements, it is … Read more

C – Operator and Expression

Operators are the mathematical symbols that are used to perform a mathematical operation on operands. These symbols tell the compiler to perform respective operations. An expression is formed by joining constants and variables in C programming. Example: In the above example, 10 and 5 are operands and + is the operation performed between these two operands. Types … Read more