## Write a program to find digits in a number.

Hey guys, writing a code is not a tough if you know the logic and you can write it at your own in any computer language that you know. so first we figure out the logic of getting digits of a number. suppose we have a digit= 234. lets figure […]

## Pointers in C

What is Pointer? this is a question who trouble many of us, so i decide toÂ write on it, hope it helps you đź™‚ When we define a variable in c or whatever language, the compilerÂ will find unused/vacant location in memory and allocate that to variable, to use. As we know […]

## Write a program for binary searching in c

Binary search:Â  Binary search is less time taking than linear search as itÂ starts in the middle of a sorted array, and determines on which side the value is. Steps for binary search algorithm: Firstly before applying direct searching on array, we have to sort the array. for sorting algorithm you […]

## Write a program for creating and writing in a csv file in c.

File Handling :Â ItÂ  is a way ofÂ performing operation on file using C language. operations areÂ  like creation of file, writing, appending, reading and etc. here is code given below for creating and writing into that file. Enjoy đź™‚   #include<stdio.h> #include<string.h> // function for creating and writing in file void […]

## Write a program for Bubble Sort in c.

This is a very basic method to sort an array works on swapping of adjacent elements if they are not in a order. we can sort array whether in ascending or descending order. suppose we have an array; here length of array tell us how many time comparison and swapping […]

## Linear search using array in C

Linear Search : It is simplest form of searching of a item in a array. let suppose we have an “array arr “. arr[6] = { 1, 3, 4, 5, 6, 7 }; Â  and want to search an “element item ” in our array arr. item = 5 ; […]

## Elements of C

Identifiers: All the words that we will use in c are keywords or identifiers. keywords are predefined and can’t be changed by the users, While identifiers are used to give names to entities likes variables, arrays, functions and etc. There are some rules naming identifiers as: The name should consist […]

## Constructors

Why constructor is needed? It can be a slow process to initialize all variables of a class, each time when an object is created.Â  Because the requirement of initialization is very common, JAVA allows objects to initialize themselves when they are created. This automatic initialization is performed through the use […]

## Classes

Classes are blueprint of any real entity in Java. A class contains of two types of members; a data or variable and another is method or function. Variable defined within a class are called as instance variables because each instance of the class (object of class) contains its own copy […]

## Arrays

An array is a group of similar-typed variable that are referred by a common name. A specific element in an array is accessed by its index. An array may have one or more dimensions. One Dimensional Arrays: The general form of a one dimensional array declaration is as: type variable-name[]; […]