Java Command Line Arguments
In Java, command-line arguments can be passed to a program when executing it from the command line. These arguments allow you to provide inputs or configuration parameters to your Java program. Here’s how you can access command-line arguments in Java: Command-line arguments are passed to the main method of your Java program as an array … Read more
Constructors in C++
a constructor is a special member function of a class that is used to initialize the objects of that class.
Destructors in C++
In C++, a destructor is a special member function of a class that is automatically called when an object of that class goes out of scope or is explicitly destroyed. It is used to clean up any resources or perform any necessary actions before the object is destroyed. The syntax for a destructor in C++ … Read more
Friend class and Function in C++ with Example
In C++, a friend function is a function that is granted access to the private and protected members of a class. It can be declared inside the class, but it is not a member of that class. A friend function can be useful when you need to allow a function external to the class to … Read more
PHP Session
PHP SESSION VARIABLE Session variable is special type of array that holds information for individual user again unique session id like sending information from one web page to another or many pages using unique identity by session id for individual user. It is used to persist (hold on) state information between page requests. session variable … Read more
Operators in C
The symbols which are used to perform Arithmetic (mathematical), logical and relational operations in a C language are called C operators. Types of Operators and Examples. Operator consists of the following types: Arithmetic Operators in C: the addition is denoted by a + sign. We use addition to add two variables.subtraction is denoted by a – signmultiplication is … Read more
VARIABLES AND CONSTANTS IN C
In C programming language, a constant is an identifier that contains a specific value The value cannot be altered during normal c program execution as the value is constant.Exampleconst float PI = 3.1415927; // (Pi is a constant) for(int i=0;i<10,i++) // i is a variable Floating-point constants Floating point constants in C programming are the type of numeric constants … Read more
C Data Types
In C programming, data types specify an extensive system used for declaring variables(like int a) or functions(void fun1()) of different types. The C data type of a variable determines how much space it occupies in memory and how the bit pattern stored in memory will be understood by the processor.Various arithmetic datatypes and functional data types available in the … Read more
CSS Backgrounds
CSS background properties(like color, and image) allow you to specify things such as: The background color of a web page(or pages), table(or tables), paragraph(or paragraphs), etc The background image for a web page(pages), table(tables), paragraph(paragraphs), etc The position of the background image It allows an image to scroll with a web page, or to fix … Read more