answersLogoWhite

0

What is returntype?

Updated: 10/19/2022
User Avatar

Wiki User

14y ago

Best Answer

A return type describes the type of data which is returned by a call to a method. They keyword void is used to describe a method which does not return any data.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is returntype?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the syntax in declaring methods?

The general syntax of a Java method is:[public|protected|private] [static] [final] [synchronized] returnType methodName(args...)Where:[] surrounds optional items| separates items of which you must choose onereturnType is void or the name of a class or primitive typemethodName is a Java identifierargs... is a list (which may be empty) of class/primitive types and identifiers


Related questions

What is the general format for user defined functions in c?

returntype name ( parameters )statementblockif there is no returntype or parameters, 'void' is used instead.


When using version 3.5 of the framework in applications which emit a dynamic code?

It can be executed by calling System.Reflection.Emit.DynamicMethod( string name, Type returnType, Type[] parameterTypes ) without any special permissions


What is the syntax in declaring methods?

The general syntax of a Java method is:[public|protected|private] [static] [final] [synchronized] returnType methodName(args...)Where:[] surrounds optional items| separates items of which you must choose onereturnType is void or the name of a class or primitive typemethodName is a Java identifierargs... is a list (which may be empty) of class/primitive types and identifiers


Why main function c contained?

1..Every program start with main(). 2. Compiler firstly compile line main(). 3. At least one fuction in C language. 4. Syntax of function returntype functionname(parameter/arguments) { body } int main(void) { printf("Hello"); } Sachin bhardwaj skbmca@gmail.com 9868547722


What is protyping in c?

prototyping is declaring the function , its returntype, type of argument passed so that the compiler just know what the function if not defined yet will be doing. eg:- int xyz(int,float); //this is the prototype main() { int x; x=xyz(4,3.55); printf("%d",x); } int xyz(int a, float b) // actual definition of function { int c; c=a + b; return c; }