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 / shikhar

yes, the answer is a. In C, the function may or may not
return any value. In new languages like vb, dotnet....these
kind of functions are called "subroutines".

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning of && in c?

551


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

816


Write a program to print "hello world" without using a semicolon?

598


Is return a keyword in c?

599


Describe explain how arrays can be passed to a user defined function

606






Explain do array subscripts always start with zero?

762


what are bit fields in c?

607


What are the different file extensions involved when programming in C?

761


What is structure data type in c?

574


what is a function method?give example?

1915


What is the purpose of main( ) in c language?

624


What is the difference between memcpy and memmove?

606


What is the default value of local and global variables in c?

560


What are the types of operators in c?

613


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

681