
Search In
In C++ scope resolution operator is used to define a function outside a class. If a user has a local variable with same name as global variable and wants to use a global variable the we use the scope resolution operator.
include<ios
// C++ program to output the maximum occurring character in a string
#include<bits/stdc++.h>
#define ASCII_SIZE 256
using namespace std;
char getMaxOccuringChar(char* str)
{
int count[ASCII_SIZE] = {0};//create an array to keep characte
Hello Reader! All of us must have designed a code to print pyramid or some other pattern of asterisk using C, C++. Here is a simple program to print the different asterisk(stars) patterns in PHP. A pattern of stars is a way of arranging these in some
Iterator in Java
java.util package has public interface Iterator. Iterator can be defined as interface which belongs to collection framework. Iterator as name suggest allows accessing,removing and traversing data element con
The logic of the program is to use a boolean array named presentseen of size 100, the size is defined by macro LIMIT. The boolean array is used to keep track of array elements that lie in range 0 to 99, which is initially initialized t
Java Reflection
The run time behaviour of a class can be examined and modified at run time,this process is called java reflection. To examine and change the run time behaviour of a class java.lang.Class is used which provides many methods
A pointer is variable whose value is address of another variable You must declare it before using it in your program.
C++ performed task more easily with pointers, such as dynamic memory allocation, cannot be performed without them.
&
C++ allows you to define different types of variables. You can define a single variable that can hold data of multiple variables.
Defining a Structure:
struct [structure tag]
{
member definition;
member definition;
...
member d
Sorting in C is mainly done to arrange elements either in ascending or in descending order.
Sorting in done in programming by various ways
We are about to discuss insertion sort that will take element wise comparison for performing
For doing search in C we use linear search a very simple and common searching process used for finding elements inside the array.
Linear search is also called as the sequential search.
Linear Search Algorithm
Lin
