main is a predefined or user define function
if user defined why?
if predefined whay?
Answer Posted / shankar dayal
main() function is niether predefined nor user defined function. Because if it is predefined, when program is written in main() function then given their own logic then how it is predefined. Another one if it is user defined, then we can write the any function name on the place of main(). So main() is niether a predefined nor user defined function.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is the use of volatile?
What is the usage of the pointer in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Do pointers store the address of value or the actual value of a variable?
What is a buffer in c?
Write a program to find the biggest number of three numbers in c?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
Can variables be declared anywhere in c?
What is the method to save data in stack data structure type?
Write a program to swap two numbers without using a temporary variable?
What is a union?
Explain what is the benefit of using enum to declare a constant?
What does do in c?
Can main () be called recursively?
Explain how can I open a file so that other programs can update it at the same time?