What is the purpose of void in c?



What is the purpose of void in c?..

Answer / Vivek Vishnoi

"void is a data type in C that represents the absence of any value. It's often used to declare functions that don't return a value."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

write a program to display numbers from 1 to 10 and 10 to 1?

2 Answers  


What is a string?

1 Answers  


Explain what is the advantage of a random access file?

1 Answers  


Is r written in c?

1 Answers  


What is an lvalue and an rvalue?

1 Answers  


How can we see the Expanded source code and compiled code for our source program in C?

1 Answers  


Write the following function in C. stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return - 1. The function should not make use of any C library function calls.

3 Answers   Google, Infosys, JTL, OpenFeel,


why in C,C++'s int size is 2 byte and .net(c#) int Size is 4 byte?

2 Answers  


What is structure padding ?

3 Answers   HP,


What is extern c used for?

1 Answers  


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1 Answers  


What does %c do in c?

1 Answers  


Categories