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

Explain b+ tree?

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,


What is the explanation for cyclic nature of data types in c?

0 Answers  


Explain how can I prevent another program from modifying part of a file that I am modifying?

0 Answers  


What are the types of functions in c?

0 Answers  






What is the scope of static variable in c?

0 Answers  


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

0 Answers  


Can we change the value of constant variable in c?

0 Answers  


What are the functions to open and close the file in c language?

0 Answers  


I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.

1 Answers  


Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.

2 Answers   Scientific Atlanta, Wipro,


what is the difference between. system call and library function?

2 Answers   CDAC, Satyam,


Categories