Recent questions tagged lexical-analysis

0 votes
2 answers
91
In below line is there any lexical error or not if yes then why?int A=123456789;
6 votes
7 answers
92
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
4 votes
3 answers
94
No of token generated? int main() { int *p; printf("%d", *p); }
14 votes
2 answers
96
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
1 answer
97
The same identifier X is used to represent two distinct variables in the same function in a C program, then which of the following statement is / are TRUE?S1: The lexical...
0 votes
1 answer
98
4 votes
3 answers
100
The number of tokens in the following expression is?+ * * * < = & { - + + + } ( > ) + & &
1 votes
1 answer
102
15 votes
2 answers
103
Using longer identifiers in a program will necessarily lead to:Somewhat slower compilationA program that is easier to understandAn incorrect programNone of the above
0 votes
2 answers
105
1 votes
1 answer
106
typechecking is done by :1. lexical analyser2. syntax analyser3. semantic analyser4. ICG
2 votes
1 answer
107
checking whether a variable is defined before use is syntax error or semantic error??
2 votes
2 answers
108
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; }What is the kind of er...
6 votes
3 answers
112
2 votes
2 answers
114
0 votes
1 answer
115
2 votes
2 answers
116
Can any one Write A C Program to print "ACCEPT" if the string has the pattern0*1* + 1*0*otherwise "REJECT"
8 votes
1 answer
117
0 votes
1 answer
118
0 votes
1 answer
119
Compile time error do not include:A. Lexical errorB. Syntactic errorC. Semantic errorD. Logical errorWhat is the answer?What are these errors?please explain with an examp...
0 votes
1 answer
120