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

Program to find the sum of digits of a given number until the sum becomes a single digit

8 Answers   InterGraph,


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

0 Answers   CLG,


How to set file pointer to beginning c?

0 Answers  


write the program for prime numbers?

73 Answers   Accenture, Aptech, Infosys, TCS,


what is the use of getch() function in C program.. difference b/w getch() and getche()??

29 Answers   HCL, IBM, Infosys, TCS, Wipro,






What are the primitive data types in c?

0 Answers  


What is the purpose of sprintf?

0 Answers  


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

0 Answers  


What is c language in simple words?

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


What is pointers in c?

0 Answers  


What are # preprocessor operator in c?

0 Answers  


Categories