In which category does main function belong??

Answers were Sorted based on User's Feedback



In which category does main function belong??..

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

In which category does main function belong??..

Answer / ankur mohan sharma

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

In which category does main function belong??..

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

In which category does main function belong??..

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

In which category does main function belong??..

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

Post New Answer

More C Interview Questions

Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********

4 Answers  


What is encapsulation?

2 Answers  


Explain the advantages of using macro in c language?

1 Answers  


Where local variables are stored in c?

1 Answers  


What does typeof return in c?

1 Answers  


When the macros gets expanded?

1 Answers  


Explain what are header files and explain what are its uses in c programming?

1 Answers  


what is a c-language.what is do.

4 Answers   HCL,


suppose there are five integers write a program to find larger among them without using if- else

2 Answers  


What does sizeof int return?

1 Answers  


atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation

0 Answers  


What is header file in c?

1 Answers  


Categories