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 […]

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 […]