Sudhir sharma has Published 1206 Articles

C program to simulate Nondeterministic Finite Automata (NFA)

sudhir sharma

sudhir sharma

Updated on 18-Jul-2020 06:16:51

3K+ Views

In this problem, we are will create a C program to simulate non-deterministic Finite automata (NFA).NFA (Non-deterministic Finite automata) finite state machine that can move to any combination of states for an input symbol i.e. there is no exact state to which the machine will move.Formal definition of NDFA −NFA ... Read More

C Program to reverse each node value in Singly Linked List

sudhir sharma

sudhir sharma

Updated on 18-Jul-2020 06:09:34

300 Views

In this article, we are given a linked list. Our task is to create a C program to reverse each node value in singly linked list.We will take each node of the linked list and reverse the value.Linked list is a sequence of links that contains items that are linked ... Read More

C Program to Reverse Array of Strings

sudhir sharma

sudhir sharma

Updated on 18-Jul-2020 06:05:30

2K+ Views

In this problem, we are given an array of string. Our task is to create a c program to reverse array of strings.We will reverse the array elements i.e. last element to the first value and so on.Let’s take an example to understand the problem, Inputstrarr[] = {"learn", "programming", "at", ... Read More

C program to Replace a word in a text by another given word

sudhir sharma

sudhir sharma

Updated on 18-Jul-2020 06:03:28

5K+ Views

In this program, we have given three strings txt, oldword, newword. Our task is to create a C program to replace a word in a text by another given word.The program will search for all the occurrences of the oldword in the text and replace it with newword.Let’s take an ... Read More

C program to print number series without using any loop

sudhir sharma

sudhir sharma

Updated on 18-Jul-2020 06:01:29

440 Views

In this problem, we are given two numbers N and K. Our task is to create a program that will print number series without using any loop.The series that is to be printed will start from n and will be subtracted by k till it becomes zero or negative. After ... Read More

C program to print environment variables

sudhir sharma

sudhir sharma

Updated on 18-Jul-2020 05:58:48

864 Views

Here, we will create a c program to print environment variables.Environment variable is a global variable that can affect the way the running process will behave on the system.Program to print environment variables//Program to print environment variablesExample Live Demo#include int main(int argc, char *argv[], char * envp[]){    int i; ... Read More

C program to print employee details using Structure

sudhir sharma

sudhir sharma

Updated on 17-Jul-2020 13:30:11

2K+ Views

Here, we are given a structure containing details of employees. Our task is to create a C program to program to print employee details using structure.The details of the employee that are in the structure are name, age, phone number, salary, and our program will print these details.The details of ... Read More

C Program to print all permutations of a given string

sudhir sharma

sudhir sharma

Updated on 17-Jul-2020 13:27:09

1K+ Views

In this problem, we are given a string. Our task is to create a c program to print all permutations of a given string.This program will find all possible combinations of the given string and print them.Permutation is the arrangement of all parts of an object, in all possible orders ... Read More

C Program to list all files and sub-directories in a directory

sudhir sharma

sudhir sharma

Updated on 17-Jul-2020 13:20:49

6K+ Views

Here, we are given a directory. Our task is to create a C program to list all files and sub-directories in a directory.The directory is a place/area/location where a set of the file(s) will be stored.Subdirectory is a directory inside the root directory, in turn, it can have another sub-directory ... Read More

C program for pipe in Linux

sudhir sharma

sudhir sharma

Updated on 17-Jul-2020 13:14:14

2K+ Views

Here, we will create a C program for pipe in Linux. In this program, we will read some text from the input stream and then print it to the output screen.First, let’s learn basics about pipe in LinuxPipe is used to transfer data, it can be used for communication between ... Read More

Advertisements