Recent questions tagged compiler-tokenization

6 votes
7 answers
61
Find the type of error produced by the following C code.main() { in/*comment t x; floa/*comment*/t gate; }Lexical errorsyntax errorboth a) and b) None of these
8 votes
2 answers
62
The number of tokens in following program?# define M 100 int main ( ) { // declare variables int n = 2020; return n % M; }Your Answer:19Correct Answer: 16 Status: inco...
0 votes
2 answers
63
$/* abc */Printf("what's \ up \ \%d",++ \&\& *a);$
0 votes
1 answer
66
14 votes
2 answers
67
Consider the following C program: int main (void) { in/*this is an example*/z; double/*is it an error?*/y; print( “This is simple” ); return 0; }- How many Different ...
1 votes
2 answers
68
Find no of Tokens in bellow programint main(){ a=b+c;"printf("%d%d%d,a,b,c")";}nd my other doubt is if we replace a=b+c to "a=b+c or a=b+c" will it give lexical error n...
3 votes
1 answer
70
0 votes
1 answer
73
0 votes
1 answer
74
1 votes
1 answer
75
0 votes
0 answers
79
Find Number Of Lexeme And Tokens in the Below FORTRAN Code. [ ignore the white spaces only ]( pls also explain me what do the code mean )DO 10 I = 100DO 10 I=10,1DO 10 I ...
0 votes
2 answers
80
3 votes
3 answers
81
The maximum number of reduce moves that can be taken by a bottom-up parser with no epsilon and unit productions to parse a string of length 3 tokens is ____ ?
1 votes
1 answer
82
How tokens are assigned for a string having escape sequence in C lexical phaseEg..printf ("this\" is a string\"");and what forprintf ("this is""a string");
41 votes
7 answers
83