main is a predefined or user define function
if user defined why?
if predefined whay?

Answer Posted / mayank jain

Main() is a user define function because user define it, and main is a keyword that is predefined, that also tell the compiler for the execution of program is starting from here.
when we Write the program we never declare the main function anywhere, only define it.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the loops in c?

774


Explain function?

867


What is calloc malloc realloc in c?

813


What is the meaning of ?

808


Is there sort function in c?

789


What is string constants?

889


What is dangling pointer in c?

819


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1964


What is graph in c?

812


What is a structure member in c?

758


What is pointer to pointer in c?

857


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1142


What is use of null pointer in c?

752


What does the c preprocessor do?

851


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

5105