answersLogoWhite

0

What is the role of void in functions of c?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

this is a void main()int, char, are execution the program and it is not return the void.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the role of void in functions of c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a Generic Function in c plus plus?

Predefined functions are built-in functions that perform standard operations and that generally do not depend on any classes. A predefined void function is simply a predefined function that has no return value. An example of a predefined void function is the abort() function which typically has the following signature: void abort(void);


What is token in C programming?

They're things that keep the variables in line with the void main and your functions


Purpose of void database in c plus plus?

There is no such term in C++. You probably meant void datatype. Void simply means "no type" and is primarily used as a place-holder for functions that do not return a value, since all functions must return something even when they return nothing at all. Not to be confused with void* which is a pointer to any type which, if non-null, must be cast to the correct type before being dereferenced.


How many essential functions are required to write a c program and write those?

One.int main (void) { return 0; }


Empty data types in C?

Void - is empty data type in C


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.


How function can be nested in c?

A function can call other functions (or itself), but a function-definition cannot be nested in another function-definition: int main (void) { void wont_compile (void) { puts ("Won't compile"); } wont_compile (); return 0; }


How do you create a class and declare a method in C?

class classname { public://access specifiers// { int a,b;//a and b are data members// void get() { printf("\n mouni no"); scanf("%d",&a); } void display() { printf("mouni no is",&a); } }; here void functions are methods


Define functions in c?

type function_name (type1 arg,...){//function body}void finc(int arg0){cout


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; }


How do you declare a functions?

public void throwRock() { }


What is meant by void in c plus plus?

void is used by functions that do not return a value. For example: // This function returns an integer, which you can use in other functions int addTwoNumbers(int a, int b) { return(a + b); } // This function does not return a value, so we declare it as a void void printSum(int a, int b) { cout << a << " + " << b << " = " << addTwoNumbers(a, b) << endl; // Note that attempting to return a value here will cause an error. }