answersLogoWhite

0

What is return keyword in c?

Updated: 8/10/2023
User Avatar

Souviksaha19

Lvl 1
12y ago

Best Answer

return lets you literally return a value from a function. This allows you to define functions like:

int add(int x, int y)

{

return(x + y);

}

int twoplustwo = add(2, 2);

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

statement

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is return keyword in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is in is used as a keyword in C language?

Neither "in" nor "is" is a keyword in C.


What is meaning of keyword in c language?

'Keyword' is a synonym for 'reserved word', it is not specific to C language.


The keyword indicates that a method does not return a value?

void


What is auto in turbo c?

Keyword.


What is new keyword in c?

enum, void and const are relatively new keywords in Cnew, on the other hand, isn't a keyword in C


What is foreign keyword in java?

There is no "foreign" keyword in Java, however, there is a native keyword that declares native methods in a native language, such as C or C++.For full list of keywords in Java see related question.


Is 'main' a keyword in c language?

No.No.


What is meant by println in c plus plus?

println is not a C++ keyword.


What does a void method do?

In Java, this keyword is used to specify that the method has no return value.


Which Keyword is used to return some value from a function?

return var_name; e.g int fun() { int x=...; return x; }


What is the return keyword in Java?

this is the type of the value that the method returns to its caller


What is the meaning of keyword?

The meaning of keyword density is that it is a certain percentage of the amount of times a keyword or phrase appears on a website instead of the amount of words on that page.