What is true about the following
C Functions
a.Need not return any value
b.Should always return an integer
c.Should always return a float
d.Should always return more than one value.

Answer Posted / shruti

Need not return any value.

its acceptable if a function does not return any value
provided its return type is "void"..

if its return type is char , int , float.. then it has to
return that respective type of value

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is main an identifier in c?

844


What are the types of data structures in c?

827


What does c mean in basketball?

763


please explain every phase in the "SDLC" in the dotnet.

2386


Why c is called a mid level programming language?

833


Is c is a low level language?

800


What are different types of operators?

779


What is difference between function overloading and operator overloading?

866


Why string is used in c?

757


What is the translation phases used in c language?

835


Why do some versions of toupper act strangely if given an upper-case letter?

839


Explain what is the general form of a c program?

820


What is the difference between a free-standing and a hosted environment?

903


Can we declare variable anywhere in c?

729


hi send me sample aptitude papers of cts?

1874