Question Set

1. The keyword used to transfer control from a function back to the calling function is





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.01 pm
    The keyword return is used to transfer control from a function back to the calling function. Example: #include<stdio.h> int add(int, int); /* Function prototype */ int main() { int a = 4, b = 3, c; c = add(a, b); printf("c = %d\n", c); return 0; } int add(int a, int b) { /* returns the value and control back to main() function */ return (a+b); } Output:
    c = 7
Show Similar Question And Answers
QA->A girl started counting the fingers of her left hand, calling the thumb 1, the index finger 2, middle finger 3, ring finger 4, little finger 5 and then reversed the direction calling the ring finger 6 middle finger 7 and do on. She counted upto She ended counting on ……………… finger....
QA->If function inside another function is called a _____ Function....
QA->Which of the following is not a quantitative credit control weapon used by RBI to control credit....
QA->The real control of the Indian Government was passed into the hands of the President of Board of Control by passing the?....
QA->The main function of …… is to control the level of sugar in the body?....
MCQ->Which of the following statements are correct about functions and subroutines used in C#.NET? A function cannot be called from a subroutine. The ref keyword causes arguments to be passed by reference. While using ref keyword any changes made to the parameter in the method will be reflected in that variable when control passes back to the calling method. A subroutine cannot be called from a function. Functions and subroutines can be called recursively.....
MCQ->The keyword used to transfer control from a function back to the calling function is....
MCQ->Which of the following statements are correct? An argument passed to a ref parameter need not be initialized first. Variables passed as out arguments need to be initialized prior to being passed. Argument that uses params keyword must be the last argument of variable argument list of a method. Pass by reference eliminates the overhead of copying large data items. To use a ref parameter only the calling method must explicitly use the ref keyword.....
MCQ->Which of the following statements are correct? The switch statement is a control statement that handles multiple selections and enumerations by passing control to one of the case statements within its body. The goto statement passes control to the next iteration of the enclosing iteration statement in which it appears. Branching is performed using jump statements which cause an immediate transfer of the program control. A common use of continue is to transfer control to a specific switch-case label or the default label in a switch statement. The do statement executes a statement or a block of statements enclosed in {} repeatedly until a specified expression evaluates to false.....
MCQ->Consider the following about 'return' statement in C On executing the return statement, it immediately transfers the control back to the calling program.There is no restriction on the number of 'return' statements present in a function.The 'return' statement must be present at the end of called function. Which of the above are correct?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution