“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”
Read more comments...
Write a small lexical analyzer for expressions like “a*b” etc.
6,648 Views | (6 votes, avg: 4.17)
int lex-a-star-b(char *s){ int i=0; while(s[i]==’a')i++; if((s[i]==’b')&&(s[i+1]==’
int lex-a-star-b(char *s)
{
int i=0;
while(s[i]==’a')i++;
if((s[i]==’b')&&(s[i+1]==’