In which category does main function belong??
Answers were Sorted based on User's Feedback
Answer / ektasingh
main is not user defined.(user defined functions can have
any name )
main is not inbuilt.(it has not been defined in any library)
what is main????
| Is This Answer Correct ? | 6 Yes | 3 No |
Main is a user defined function.
It has an important property that it is first recognised by compiler. So it must be present in a program.
A user defined function is one whose defination is given by user and Since you define main's working. So it is a user defined function.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / devi
main function is used in C,C++,Java languages which is
first read by the compiler.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / abhinendra bhadauriya
main is an thread which create process in the memory with the help of operating system
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sonu
main function part of class so its name is main, and it is execute execute by the compiler outside the class so it is made public, and it is getting the memory at compile time so it is static , and it is not return any value so it is void .
| Is This Answer Correct ? | 0 Yes | 0 No |
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001
read an array and search an element
What is the best way to comment out a section of code that contains comments?
What is the g value paradox?
What is an example of structure?
write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .
why you will give me a job in TCS.
Write one statement equalent to the following two statements x=sqr(a); return(x); Choose from one of the alternatives a.return(sqr(a)); b.printf("sqr(a)"); c.return(a*a*a); d.printf("%d",sqr(a));
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
Write a program to print numbers from 1 to 100 without using loop in c?
What are identifiers in c?