Searching in C Programming

Searching is the process of finding element in a given list. In this process we check item is available in given list or not. Type of searching Internal search External search Internal Search: In this search, Searching is performed on main or primary memory.External Search: In this search, Searching is performed in secondary memory. There …

Read more

Strings in C

Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special character ‘\0’( NULL character ). String is a one dimensional array of character. We can initialize the string as char name[]={‘r’,’a’,’j’,’u’,’\0’}; Here each character occupies 1 byte of memory and …

Read more

Array In C Program:

Introduction To Arrays:In C programming, one of the frequently problem is to handle similar types of data. For example: if the user wants to store marks of 500 students, this can be done by creating 500 variables individually but, this is rather tedious and impracticable. These types of problem can be handled in C programming …

Read more

C Recursion

The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called as recursive function. Using recursive algorithm, certain problems can be solved quite easily. WAP in C to Calculate the factorial of a number using recursion Output WAP in C to GCD of Two Numbers using …

Read more

Functions in C Programming With Examples

A function is a group of statements that together perform a task. Every C program has at least one function, which is main(), and all the most trivial programs can define additional functions.You can divide up your code into separate functions. How you divide up your code among different functions is up to you, but logically …

Read more

C Loops: For, While, Do While, Looping Statements with Example

Loop: The versatility of the computer lies in its ability to perform a set of instructions repetedly. This involves repeating some portion of the program either a specified number of times or until aparticular condition is being satisfied. This repetitive operation is done through a loop control instruction. There are three methods by way of …

Read more

if else statement in C

The if Statement: C uses the keyword if to implement the decision control instruction. The general form of if statement looks like this: The keyword if tells the compiler that what follows is a decision control instruction. The condition following the keyword if is always enclosed within a pair of parentheses. x==y x is equal …

Read more

Structure Of C Program With Example. main() in C . printf in C .

Form of a C Program : Each instruction in a C program is written as a separate statement. The statements in a program must appear in the same order in which we wish them to be executed; unless of course, the logic of the problem demands a deliberate ‘jump’ or transfer of control to a …

Read more

What Is C Language ? Character Set, Variables, Keywords In C

What is C : Programming Language, designed by Dennis Ritchie Reliable, Simple, Easy to use Builder  & Basic Programming Language Popular Operating System – Windows, Unix, Linux    written in C Mobile devices- Smart Phones, Tablets, Microwave Ovens, Washing Machine come from Microprocessor, Operating system, Programs. C is the language of choice while building such Operating …

Read more