Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the Difference between a sub and a function?

Answers were Sorted based on User's Feedback



What is the Difference between a sub and a function?..

Answer / bhupendran

sub does not return's a value,but function return's value

Is This Answer Correct ?    36 Yes 2 No

What is the Difference between a sub and a function?..

Answer / aravindreddy

SUB is a method
FUNCTION is to return a value to it

Is This Answer Correct ?    29 Yes 2 No

What is the Difference between a sub and a function?..

Answer / alam

Function always returns a value but sub does not.

Is This Answer Correct ?    22 Yes 4 No

What is the Difference between a sub and a function?..

Answer / m. aqueel

Sub keyword is used for the procedures and procedures never
return a value where function key word is used for function
and function returns a value that can be assign to any
variable.

Is This Answer Correct ?    17 Yes 1 No

What is the Difference between a sub and a function?..

Answer / aaa

Function returns a value, Sub doesn't.
Function can be called from within a cell, similar to
=Today() function.

Is This Answer Correct ?    10 Yes 1 No

What is the Difference between a sub and a function?..

Answer / kinjal

sub does not returns a value but function returns a value

Is This Answer Correct ?    8 Yes 1 No

What is the Difference between a sub and a function?..

Answer / bart calixto

yeah, sure.. everyone says that but...

what's the purpose of sub.?
I can do a function

Function ThisIsASub()
write "HELLO WORLD"
end Function

wow! I have a sub now.

so, besides the stupid reason that sub don't return value, what's the point of using subs?

If like someone create a newIF but it doesn't support ELSE... what's the point?

Greetings,
Bart.

Is This Answer Correct ?    2 Yes 0 No

What is the Difference between a sub and a function?..

Answer / digvijay

Sub is also function but never return the value and Function
must return the value.
Function is user defined and System define but sub is
keyworlds that defined by user.

function can be macro but Sub is Not.

Is This Answer Correct ?    1 Yes 0 No

What is the Difference between a sub and a function?..

Answer / raju chauhan

Like a Function procedure, a Sub procedure is a separate
procedure that can take arguments, perform a series of
statements, and change the value of its arguments. However,
unlike a Function procedure, which returns a value, a Sub
procedure can't be used in an expression.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Why is .net used?

0 Answers  


what is use of learning .net? does we get good jobs based on .net?

2 Answers  


What is dot net architecture?

0 Answers  


When displaying fonts, what is the difference between pixels, points and ems?

0 Answers  


Do you know what's the difference between .net and laravel?

0 Answers  


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

0 Answers  


create a keypair?

1 Answers  


what is ItemTemplate and EditTemplate and FooterTemplate? what is the Purpose of useing template columns in datagrid?

1 Answers  


Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?

0 Answers  


Explain how to manage pagination in a page using .net?

0 Answers  


Explain about .NET services?

0 Answers  


Why you want to leave your previous company.

0 Answers  


Categories