When is the “void” keyword used in a function?



When is the “void” keyword used in a function?..

Answer / hrpynux@gmail.com

When used as a function return type, the void keyword specifies that the function doesn't return a value. When used for a function's parameter list, void specifies that the function takes no parameters. When used in the declaration of a pointer, void specifies that the pointer is "universal."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

0 Answers  


what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits

2 Answers   Wipro,


How is a pointer variable declared?

0 Answers  


What is the difference between array and linked list in c?

0 Answers  


What do you mean by dynamic memory allocation in c?

0 Answers  


Why is c so powerful?

0 Answers  


swap two integer variables without using a third temporary variable?

6 Answers   Persistent,


What are the disadvantages of external storage class?

0 Answers  


Explain what is wrong with this program statement?

0 Answers  


how to print a statement in c without use of console statement ,with the help of if statement it should print

2 Answers   Satyam,


why return type of main is not necessary in linux

0 Answers   TCS,


What are shell structures used for?

0 Answers  


Categories