/*output [user@localhost ~]$ lex lex.l [user@localhost ~]$ gcc lex.yy.c -ll -o m [user@localhost ~]$ ./m 13 13 is a number. him him is a identifier. for else is a keyword. #include #include is a header. + + is a operator. $ */ Advertisements
I have made a video on red hat linux installation, check it out and give it a like !
Output: DFA for string starting with 00 and ending with 011 Enter string 00101110011 String Accepted Transition Table: State 0 1 ——————- q0 q1 qd q1 q2 qd q2 q3 q2 q3 q3 q4 q4 q3 q5 q5 q3 q2 qd qd qd
Enter: 1.Write 2.Open 3.Append 4.Copy 5.Exit 1 Enter text u want to enter ($ to stop) Naruto Sakura $ Enter: 1.Write 2.Open 3.Append 4.Copy 5.Exit 2 Naruto Sakura Enter: 1.Write 2.Open 3.Append 4.Copy 5.Exit 3 Enter text u want to enter ($ to stop) Sasuke $ Enter: 1.Write 2.Open 3.Append 4.Copy 5.Exit 2 Naruto Sakura…… Continue reading Operations on file in C
Output: 1100111111000111101 Original Data : 1100111111000111101 Sender Data : 11001111101000111101 Receiver Data : 1100111111000111101
Output: Enter IP address 192.168.5.6 It is a private IP of class C Default Mask is 255.255.255.0 First address is 192.168.5.0 Last address is 192.168.5.255
Output: Enter 7 bit data 1001101 Number of parity bits are 4 Data to send : 10011100101 Enter which bit to invert 5 Received data : 10011110101 P1 = 1, P2 = 0, P4 = 1, P8 = 0 Location of bit which is corrupt is 0101 i.e. 5