Answers for "c void function"

C
2

void function

public void Yourvoidname()
{
	//Whatever you want to happen when your void is called
}


//somewhere else in your script, for example start()
void Start()
{
	Yourvoidname();
    //when the start function is called(first frame) your void will be called
}
Posted by: Guest on November-18-2020
0

void in c

When void is used as a function return type, it indicates that the function does not return a value, unlike int ot just main()which delivers a return value.

for example
#include<stdio.h>
#include<conio.h>
main()
{
      printf("Hello World");
      return 0;
}

output:
Hello World

process exited after 10.21 seconds with return value 0


Source code 2
#include<stdio.h>
#include<conio.h>
void main()
{
      clrscr();
      printf("Hello World");
      getch();
}   

output: 
Hello World
Posted by: Guest on November-18-2021

Code answers related to "C"

Browse Popular Code Answers by Language