Computing & Informatics - MCQ from AMIE Exams (Winter 2021)
Answer the following in brief. Differentiate between actual parameters and formal parameters. The Parameters which are sent from main function to the subdivided function are called as Actual Parameters, and the parameters which are declared in the subdivided function end are called as Formal Parameters. What is pre-processor? A software program that processes the source file before sending it to actual compilation is called a preprocessor. Differentiate between call by value and call by reference. A Call by value method basically copies the data/value in any argument to a formal parameter within the particular function. Hence, any updates or changes made to the main function’s parameter do not affect the overall argument in any way. The Call by reference method actually copies the address of an argument within a function to the formal parameter. The changes to formal parameters are reflected onto the actual parameters. Explain compiler and cross-compiler. A compiler is a program tha...