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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is main an identifier in c?

593


What is a void * in c?

589


Is c procedural or functional?

582


What are structures and unions? State differencves between them.

614


What is a program flowchart and how does it help in writing a program?

655






How can I determine whether a machines byte order is big-endian or little-endian?

615


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

664


What is the difference between scanf and fscanf?

660


What are qualifiers and modifiers c?

543


How can you return multiple values from a function?

626


Disadvantages of C language.

651


Explain the process of converting a Tree into a Binary Tree.

2096


Describe the difference between = and == symbols in c programming?

773


Explain can static variables be declared in a header file?

674


what are bit fields? What is the use of bit fields in a structure declaration?

1497