View
218
Download
0
Category
Preview:
DESCRIPTION
C program to simulate working of NFA
Citation preview
} nf=i+1; while(1) { flag=0; printf("\nEnter the input : "); scanf("%s",ip); printf("\n");
l=strlen(ip);
curr[0]=0; curr[1]=-1; for(i=0;i0) { st=curr[k]; if(st==-1) break; else for(j=0;j
flag=1; } }
if(flag==1) printf("\nAccepted"); else printf("\nRejected"); }}
Recommended