void simply means you don't have anything to return w/in a function, it is the same as return 0;
public void sample()
{
MessageBox.Show("This Function do not return anything");
}
C, C++, Java, C-Sharp
C Sharp (C#)
since, the word 'void' in C programming language means that it does not return any value to the user or calling function....this is usually used to specify a type of function...... for this reason w use 'void'in c program..
#include <stdio.h> int main (void) { puts ("Marry me"); return 0; }
The term "fprintf" is a command used in the computer programming language C++. The command "fprintf" in C++ is used to print formatted data to a stream.
C, C++, Java, C-Sharp
C Sharp (C#)
There are no commands in C-programming, you should use function sqrt from math.h
Yes, C# is object orientated.
In C-programming: int main (void) { return 0; }
since, the word 'void' in C programming language means that it does not return any value to the user or calling function....this is usually used to specify a type of function...... for this reason w use 'void'in c program..
You don't use 'VOID', but 'void'. It means different things, such as:- void as function type means no return value- void as function parameter means no parameters- 'void *' as pointer-types means generic pointer
There are many advantages to C sharp programming like: Not having to define the Headers (.h), Classes can be defined within classes, classes and functions can be defined in random order unlike C and C++, Classes and functions don't need to be declared in the program.
#include <stdio.h> int main (void) { puts ("Marry me"); return 0; }
They're things that keep the variables in line with the void main and your functions
The term "fprintf" is a command used in the computer programming language C++. The command "fprintf" in C++ is used to print formatted data to a stream.
int main (void) {puts ("day is holyday");return 0;}