every function has return the value?

Answer Posted / gulam_khan7

no every function can,t return the value.if we use as void
addnum(int,int) then it will be not return value.if we use
the int addnum(int,int) is also return the value as
according to there data type.
function has three type call by value,call by refrence.and
recursive function.these all are different.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to print data of 5 five students with structures?

1620


What is a example of a variable?

563


What is pointer to pointer in c language?

604


What is c variable?

565


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1022






Why string is used in c?

595


What is extern variable in c with example?

552


What is the difference between text and binary modes?

656


Why header files are used?

656


What is call by value in c?

577


What is static and auto variables in c?

573


What is indirection?

665


What are header files in c programming?

663


Can a variable be both static and volatile in c?

618


How can I get random integers in a certain range?

630