Write a C program to reverse a string using pointers.

C Strings:Write a C program to reverse a string using pointers.In this program, we reverse the given string by using the pointers. Here we use the two pointers to reverse the string, strptr holds the address of given string and in loop revptr holds the address of the reversed string. Read more about C Programming …

C program to implement SJF algorithm.

Write a C program to implement SJF algorithm.Shortest Job First(SJF) is the CPU scheduling algorithm. In SJF, if the CPU is available it allocates the process which has smallest burst time, if the two process are same burst time it uses FCFS algorithm.Read more about C Programming Language . and read the C Programming Language …

C Program to implement FCFS algorithm.

Write a C Program to implement FCFS algorithm.First Come First Served(FCFS) algorithm is the CPU scheduling algorithm. In FCFS process is served when they are arrived in order, i.e First In First Out(FIFO). FCFS is the simple scheduling algorithm, but it takes typically long/varying waiting time.Read more about C Programming Language . and read the …

C program to implement Round Robin CPU scheduling algorithm.

Write a C program to implement Round Robin CPU scheduling algorithm.In Round Robin scheduling algorithm, a small time slice or quantum is defined, all the tasks are kept in queue. The CPU scheduler picks the first task from the queue ,sets a timer to interrupt after one quantum, and dispatches the process. If the process …

C program to replace the sub string with another string.

C Strings:Write a C program to replace the sub string in a string with another string.In this program, We replace string with another string, if the entered string is the sub string of main string, otherwise function replace_str returns the original string as it is. Read more about C Programming Language . /************************************************************ You can …

C Program to find all the permutations of a given string.

Write a c program to find all the permutations of a given string.Example: If the given string is sam, output is,samsmamsamasasmams.Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal and learning purposes. For permissions to use the* programs for commercial purposes,* contact [email protected]* To find more …

C Program to find the position of a sub string.

C Strings:C Program to find the position of a sub string in a given string.In this program, We find the position of a sub string where it starts  in the main string. Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal and learning purposes. For permissions …

C Program to implement hashing.

Write a C Program to implement hashing.Hashing is the function or routine used to assign the key values to the each entity in the database. Using hashing, We can easily access or search the values from database.In this program we used the open addressing hashing, also called as closed hashing.Read more about C Programming Language. …

C Program to solve Dining philosophers problem.

Write a C Program to solve Dining philosophers problem.Dining philosophers problem is a classic synchronization problem.A problem introduced by Dijkstra concerning resource allocation between processes. Five silent philosophers sit  around table with a bowl of spaghetti. A fork is placed between each pair of adjacent philosophers. Each philosopher must alternately think and eat.Eating is not …

C Program to convert from infix expression into prefix expression

C Program to convert from infix expression into prefix expression.We use the infix expressions for the mathematical expressions in a program, these expressions will converted into equivalent machine instructions by the compiler using stacks.Using stacks we can efficiently convert the expressions from infix to postfix, infix to prefix, postfix to infix, and postfix to prefix. …