Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / vignesh1988i

actually main function is a user defined function for the C
compiler developer.... but it is a built in or predefined
function according to the users using that compiler.... why
it is called as a predefined function because , the
prototype has already been defined in the compiler itself
we the users can't change the meaning of that unless or
until we write our own compiler , we can change the meaning
of main()......

for the main() , we don't know what is the prototype or
where the function has been called and wht excatly the
return value of it... it is built in and abstracted from the
user which is called abstraction in c++.........


thank u

Is This Answer Correct ?    64 Yes 16 No

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

Answer / sandeep kumar yadav

the definition of main is given by the user so it is called
user define function..
the prototype is define by the compiler so it is called
predefine...
this function is dependent on both user and compiler for
the execution of the program.so it is not only user define
or predefine..
so we can say it is a special function called by operating
system to execute the program.

Is This Answer Correct ?    22 Yes 3 No

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

Answer / chaitanya

Main() is a predeclared userdefined function,bcoz according to formal case the declaration of main is done already with a definite name which the user cannot chnge..but in later case the body or the definition of which is given by the user accordng to his need..i.e.:main is a pre declared user defined function.

Is This Answer Correct ?    5 Yes 0 No

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

Answer / 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

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

Answer / b.laddu lal

Main() a userdefined function or a predefined function a multimillion question?

main() is neither predefined nor userdefined function its a special member function call by Operating System......

Is This Answer Correct ?    8 Yes 6 No

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

Answer / dada khalander

main() is an user defined function.Because the user writing the body of main() function,defining the body of main() by the user.So it can be considered as an user defined function

Is This Answer Correct ?    1 Yes 1 No

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

Answer / s.s.venkatesh

the main() is a predefined function because we can't change
the name of the function or characterstics of the function.

If the function is user defined means we can change the
name of the function as we wish.

So,the main() is a predefined function.

Is This Answer Correct ?    20 Yes 21 No

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

Answer / chitaranjan barik

Main() is a predefined
function,because it's
prototype,call function,
returning val -all these
parameters only kown
to compile,not to
user.but we can use it
as user defined by
specifying our own
parameter

Is This Answer Correct ?    3 Yes 4 No

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

Answer / vilas soni++

main() is predefined function, coz we can't change it's
prototype....
We can only implement it.... And we have to use main() in
our program coz it's "Entry Point" to any C program....

(We can say userdefined, if we can also define it's
prototype and name, and in this case we can't!, we can use
only available types of main()....)

Is This Answer Correct ?    10 Yes 12 No

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

Answer / pramod jirage

main() is to be predefined beoause the progarm contralm
flows from main and it is essiontal to opreat the program

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

Explain how do you convert strings to numbers in c?

0 Answers  


Explain why can’t constant values be used to define an array’s initial size?

0 Answers  


Do character constants represent numerical values?

0 Answers  


Why doesnt that code work?

0 Answers  


What is C language ?

0 Answers   Jekson,


In which category does main function belong??

5 Answers  


How many types of sorting are there in c?

0 Answers  


What is string in c language?

0 Answers  


Why functions are used in c?

0 Answers  


what is the hardware model of CFG( context free grammar)

0 Answers   Microsoft,


write a function that accepts an integer/char array and an search item.If the search item is there in the array return position of array and value else return -1.without using other array,without sorting,not to use more than one loop?

3 Answers   Mind Tree,


At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E &#133;&#133;.. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these names could be kept in that shelf as in this example: bottom of shelf ---> [AAAJKRDFDEWAAYFYYKK]-----Top of shelf. All these packets are to be loaded on cars. The cars are lined in order, so that the packet could be loaded on them. The cars are also named [A, B, C, D, E,&#133;&#133;&#133;&#133;.]. Each Car will load the packet with the same alphabet. So, for example, car &#145;A&#146; will load all the packets with name &#145;A&#146;. Each particular car will come at the loading point only once. The cars will come at the loading point in alphabetical order. So, car &#145;B&#146; will come and take all the packets with name &#145;B&#146; from the shelf, then car &#145;C&#146; will come. No matter how deep in the shelf any packet &#145;B&#146; is, all of the &#145;B&#146; packets will be displaced before the &#145;C&#146; car arrives. For that purpose, some additional shelves are provided. The packets which are after the packet B, are kept in those shelves. Any one of these shelves contains only packets, having the same name. For example, if any particular shelf is used and if a packet with name X is in it, then only the packets having names X will be kept in it. That shelf will look like [XXXXXXX]. If any shelf is used once, then it could be used again only if it is vacant. Packets from the initial shelf could be unloaded from top only. Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

0 Answers   Infosys,


Categories