-
The C language is
-
- a context-free language
- a context-sensitive language
- a regular language
- parsable fully only be a turing maching
- a context-free language
Correct Option: B
C language is CSL
⚈ In C the grammar is context free.But the language is context sensitive e.g. I can't declare a variable twice.
⚈ Most of the programming languages like C, C+ +, Java etc. can be well approximate by CFG, and the compilers are made taking into account CFGs. However, C language itself contains context sensitive properties which cannot be deal with CFG.