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.
Answers were Sorted based on User's Feedback
Answer / arjun
none of options is answer...
so option (a)shud b lyk ..
a) its not necessary to return any value
n dis will b correct in case of return type of function is
void
Is This Answer Correct ? | 14 Yes | 0 No |
Answer / sunayana
d ans. is a.that it is nt neccsary for any c function to
return any value
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / 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 |
Answer / vinod
hey guys but when main finishes its execution does it not return any value to the compiler that the main() executed successfully or not .
how will one know that main has executed successfully.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sharana basava
Ya... d ans wil be a. In c the func may or may not returns
d value......so the ans wil ne need not to return d
value... if tis is rit tan the func must have void as a
data type.. like void main..
Is This Answer Correct ? | 0 Yes | 0 No |
What is the relation between # and include<stdio.h>
Is c dynamically typed?
Software Interview Questions
find the minimum of three values inputted by the user
if the total selling price of 15 items and the total profit earned on them is input through the keyboard, write a program to find the cost price of one of the item
if we take a number as a char then can we manipulate(add, subtract) on this number
without using arithmatic operator convert an intger variable x into x+1
Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?
2 Answers ME, Synfusion, Wipro,
25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?
11 Answers CTS, TCS,
give one ip, find out which contry
Is it possible to run a c program without using main?If yes HOW??
What are header files? What are their uses?