Lex Program to Identify Comment Lines
Lex Program to Identify both single line and multi line comments using regular expressions in lex
Lex Program to Identify both single line and multi line comments using regular expressions in lex
This is the YACC Program to Implement a program that accepts string of form a^nb where n>=1 ie..aaab or aaaaab or ab.it cannot have two or more than one b’s at the end Lex:...
This is the C program to find the transpose of a matrix. A matrix which is formed by turning all the rows of a given matrix into columns and vice-versa. #include void main() {...
This is the C Program to find the diagonal sum of a matrix #include void main() { int a[10][10],i,j,fwsum=0,rwsum=0,n; printf(“Enter the no. of rows and columns for Matrix :”); scanf(“%d”,&n); printf(“nnNow enter the Matrix...
Inter-process communication (IPC) is the activity of sharing data across multiple and commonly specialized processes using communication protocols. Typically, applications using IPC are categorized as clients and servers, where the client requests data and...
The Tower of Hanoi (also called the Tower of Brahma or Lucas’ Tower, and sometimes pluralized) is a mathematical game or puzzle. It consists of three rods, and a number of disks of different...
This is the C program to compare strings without using predefined string functions #include char string1[100],string2[100]; int flag=1,len1=0,len2=0; main() { int res; printf(“Enter String-1n”); gets(string1); printf(“Enter String-2n”); gets(string2); while(string1[len1]!=’’){len1++;} while(string2[len2]!=’’){len2++;} res=compare(string1,string2); if (res==-1||res==1) process(res);...
This is the c program to sort strings (lexical sorting) given n number of strings it will sort the strings in alphabetical order #include #include main() { char n[100][100]; int i=0,item; printf(“ENTER THE NUMBER...
This is the C Program implementation of student records (Structure) where the records are stored in files,the records can be inserted,modified,deleted or displayed by the user #include #include int JP=0; FILE *jp; typedef struct...
This is the C Program to Implement File Operations it opens a file with numbers in read mode and create separate text files for even and odd numbers(write mode) #include main() { FILE *fp1,...
Recent Comments