answersLogoWhite

0

when we declare any function with void,it doesnt return any value

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What do you mean by moving the static function declaration before the function body?

Before:static fun (void) {...}After:static fun (void); /* moved here */....static fun (void) {...}


Application of void data type in c plus plus programming language?

The voiddata type is used when a function doesn't return any value, and/or when it has no parameters at all. Pointer type 'void *' is a generic pointer.A void pointer is used when it needs to be assigned to different data types later on in a program. Since it avoids type checking, void pointers should be used with care.


What does a void method do?

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


What is meant by void abcint?

void abc(int); is a function declaration. The declared function has no return value, is named abc and accepts one integer argument by value.


How do you call a member function of one class in another class using friend function?

class B; // forward declaration. class A { private: void myFunction(B b){b.myFunction();} // Calls private method in b. }; class B { friend void A::myFunction(B b); // Friend function declaration. private: void MyFunction(); };


What is the use of void pointer?

Void Pointer is a General purpose pointer ,that does not have any data type associated with it and can store address of any type of variable. Declaration: void * pointer_name;


Which keyword is placed within the parenthesis of prototype and definitions if the function does not use arguments?

you can leave it blank or u can use void


What are the functions of 'C'?

Pieces of program-code, they are identified by their names. Example for function-declaration: int main (void); Example for function-definition: int main (void) { puts ("Hello, world!"); return 0; }


What's The difference between VOID and void?

In programming, "void" is a keyword used to indicate that a function does not return any value. "VOID" is a term generally used to describe something empty, null, or without substance.


What are the applications of void data types inc plus plus?

void data type is used in function declaration. It can be explained by examle void add(int,int); this will tell the compiler that no value is going to be returned by the function. int add(int,int); this indicates that an integer type value will be returned by the function


Is global variables are declared within the main function?

Might be, but don't forget the keyword 'extern':int main (void){extern int errno;...}


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

void