info@avatto.com
+91-9920808017
26. Feature for accessing a variable through its address is desirable because
call by reference can be simulated
excessive use of global variables can be avoided
a function can return more than one value
All of the above
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
27. It is not advisable to use macros instead of functions because
it increases the code size
no type checking will be done
recursion is not possible
28. Which of the following is/are syntactically correct?
for ( );
f or (;);
for ( , );
for ( ; ; );
29. Use of macro instead of function is recommended
when one wants to reduce the execution time
when there is a loop with a function call inside
when a function is called in many places in a program
both (A) and (B)
30. Following is a recursive function for computing the sum of integers from 0 to N. function sum(N:integer):integer begin if N=0 then Sum=0 else end; The missing line in the else part is
Sum:=N+Sum(N)
Sum:=N+Sum(N-1)
Sum:=(N-1)+Sum(N+1)
Sum:=(N-1)+Sum(N-1)
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login