Saturday, August 13

Create a Pipe and print descriptive value

program #include<stdio.h> main() { int f[2]; pipe(f); printf("Pipe Descriptive values are  %d and %d ", f[0],f[1]); }...

Create a Child process and print process-id

(i) Using one fork() system call #include<stdio.h> main() {       int f,c,p;       f=fork();       if(f==0)       {               c=getpid();               printf("Child Process\n pid: %d",c);               c=getppid();               printf("\tppid :%d \n",c);       }       else if(f>0)       {           ...

Tuesday, August 2

DEVELOP A SIMPLE ANDROID APPLICATION- Example with Code

Create a Simple Android  Application-SIMPLE CONVERTER "Simple converter" is the application intended to convert values from one unit to other that user can select. There are separate pages for Length, Temperature, weight. Hi friends, This time I would like to explain in detail how to make a simple Android application through an example - "SIMPLE CONVERTER". Here I provide the complete java code for this application. Step by Step explanation of the code is also given. "SIMPLE CONVERTER" is created in such a manner that many of the basic codes for android application development may  included. To understand them correctly,...

Monday, August 1

C program to implement DFA

//updated on 11/03/2015 Hello friends,                This post describes how a Deterministic Finte Automata (DFA) can be implemented using C. Do you know, associated with every programming language compiler there is a program named  recognizer that takes a string , say string S, as input and answers "YES" if S is a sentence of the language and  " NO " otherwise..!! To accomplish this , we have to train recognizer about the syntactic structure of intended language ( done with regular expressions). For this purpose, we construct a transition diagram...
Page 1 of 3012345Next