Write a program to find length and sum of digits in a number.

Lets first figure out the logic of getting digits of a number, once we get the digit we can count them and also find addition. suppose we have a digit= 543374. lets figure out it as; Step 1: reminder = 543374%10 = 4 digit =543374/10 =54337     (1 digit) Step […]

What are the pointers and how to use them 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 […]

How to Write program for creating and writing in CSV file?

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. Creating File: fopen() is used to open the file and it takes two arguments. First argument is the file pointer (name of file) we want to […]