answersLogoWhite

0


Best Answer

It doesn't. Void has the same meaning in both.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does the use of the 'void' keyword differ in C plus plus vs. C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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 is use of keyword extra in c plus plus programming?

Nothing.


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


How do I use this keyword with void?

These two keywords can't really be used together unless you are accessing this object within a void method.void printObject() {System.out.println(this.toString());}


How java use extern key word which is used in C plus plus?

No extern keyword in Java.


What use of void data type in c plus plus?

doesn't return the value.


What is the signature of a function in c plus plus?

A function's signature is defined by the number and type of parameters. Functions with the same signature cannot differ by return type alone. Use of the const keyword also constitutes part of the signature.


How do explicitly invoke overridden superclass method from a subclass?

Use the super keyword. Example: public class Super { public void methodToOverride() { } } public class Sub { @Override public void methodToOverride() { super.methodToOverride(); } }


Why you use zero instead of NULL in c plus plus?

In C++ NULL is defined as 0. It's a design failure, will be fixed with a new 'nullptr' keyword.


How do you display stars in c plus plus using the if else structure and a for loop and you use void main?

It depends on what program you design really


What is the use of keyword new used in AWT programming?

what is the use of new keyword in awt programming


How do you use call by reference in c plus plus?

Call by reference means calling a function using a reference to a variable or a pointer. You call a function by passing refrences to a variable. For eg: void x(int &a) { a=2; } void main() { int s=3; x(s); } OR void a(int &c) { c=5;}void main(){ int *p; *p=2a(*p);}