why use "return" statement

a) on executing the return statement it immediately transfers the control back to the calling program

b) it returns the value present in the parentheses return, to the calling program

c) a & b

d) none of the above


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?

6 Answers   Amdocs,


What will be printed as the result of the operation below: #include<..> int x; int modifyvalue() { return(x+=10); } int changevalue(int x) { return(x+=1); } void main() { int x=10; x++; changevalue(x); x++; modifyvalue(); printf("First output:%d\n",x); x++; changevalue(x); printf("Second output:%d\n",x); modifyvalue(); printf("Third output:%d\n",x); }

2 Answers  


How can I determine whether a machines byte order is big-endian or little-endian?

0 Answers  


What does %c mean in c?

0 Answers  


can we have joblib in a proc ?

0 Answers  


What is a symbolic constant?

1 Answers  


Two's compliment of -5

4 Answers   Adobe,


write a program to print %d ?

12 Answers  


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

0 Answers  


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

0 Answers  


what are two categories of clint-server application development ?

1 Answers  


Are local variables initialized to zero by default in c?

0 Answers  


Categories