TCS CodeVita previous years questions solved – Compiler Design
TCS CodeVita2014 Round 1 question Problem : Compiler Design – Limit the Method Instructions Raj is a newbie to the programming and while learning the programming language he came to know the following rules: – Each program must start with ‘{‘ and end with ‘}’. – Each program must contain only one main function. Main function must start with ‘<‘ and end with ‘>’. – A program may or may not contain user defined function(s). There is no limitation on the number of user defined functions in the program. User defined function must start with ‘(‘ and end with ‘)’. – Loops are allowed only inside the functions (this function can be either main function or user defined function(s)). Every loop must start with ‘{‘ and end with ‘}’. – User defined function(s) are not allowed to be defined inside main function or ...