Never ever use void main() because the only return value stated in c and c++ standards is int. main() will return an integer whether you declare it like that or not. Of a return value is not specified then the function will return 0.
If your compiler produces a warning then just add a return statement.
You can answer that with a rhetorical question: Would you provide a maniac with a RPG Launcher? No. Why? Because it's Harmful.
Yeah!! you are right .. Some compilers show warning on not providing the return statement while using int main()
I could very well tick it off of my compilers "Warnings To Suppress" List. But as AncientDragon enlightened me that it's optional, so my current settings are infact right. And BTW the posts are going way off topic so let's just stop here & not force Nick to Lock this thread. ;)
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...