T
Tiny Tim
I am new C program student.
I wonder can we write a program in C that just trigger its function to do a certain action ?
In this case, I have a program but it is not working.
What I want is for the function to print "Hello". No passing of values to or from the function.
What is the correct way to write the program?
#include <stdio.h>
void Compute ; /*function prototype*/
int main ()
{ Compute; /*function call*/
return 0 ;
}
void Compute
{
printf ("Hello");
return ;
}
Thank you
Tim
I wonder can we write a program in C that just trigger its function to do a certain action ?
In this case, I have a program but it is not working.
What I want is for the function to print "Hello". No passing of values to or from the function.
What is the correct way to write the program?
#include <stdio.h>
void Compute ; /*function prototype*/
int main ()
{ Compute; /*function call*/
return 0 ;
}
void Compute
{
printf ("Hello");
return ;
}
Thank you
Tim