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...


Hi,
main()
{
}

Is a user defined function or Built in Functionn

Answers were Sorted based on User's Feedback



Hi, main() { } Is a user defined function or Built in Functionn..

Answer / amit jha

1. main() itself is a predefined function.

where as main() is a userdefined function because there we
are writing the internal part.

2. it is an inbuilt function i.e, main() it indicates the
starting of the program and it is a user defined function
when the user defines it as void main() or int main(void).

3. A program usually stops executing at the end of main,
although it can terminate at other points in the program
At times, perhaps when a certain error is detected, you
may want to force the termination of a program. To do so,
use the exit function. so that main() is a user defined
function.

Is This Answer Correct ?    4 Yes 3 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / yogendrra

the main funtion is both user defind and sysyem defined

Is This Answer Correct ?    0 Yes 0 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / vinit malik

main() is a system declared user defined function bcoz it is declared as built in function but defined by user means a user gives the definition of the function bcoz user defines what it will do...

Is This Answer Correct ?    0 Yes 0 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / hemanth

main method is inbuilt function.Execution of the program starts with main().JVM should know where the execution of the program start.If it is user defined function,why cant we write
int instead of void before main(string args[]).

Is This Answer Correct ?    0 Yes 0 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / pravat kumar patra

main() is a user defind function.because we write some codes
inside main to perform certain task.but in case of sqrt() if
write the function in a program it executes.but we have not
to write the function body.
consider the case:-
void main() void main()
{ {
printf("hello"); inti=25,p=sqrt(i);
} printf("%d",p);
}

use header file math.h.

Is This Answer Correct ?    0 Yes 0 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / neeraj pal

it is user define built in function............becoz user
create the methods in the main,we can change its name in the
c programming only if ,have to change the compiler coding in
which main is defined.

Is This Answer Correct ?    2 Yes 3 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / ashok kumar

According to definition of predefined function,It should
perform some task,can any one tell the particularly the task
of main()function?.then the answer is clear main() is not
predefined,so then we are defining main()so absolutely user
defined function....



This is definition of predefined funtion "(computing) Any of
a set of subroutines that perform standard mathematical
functions included in a programming language; either
included in a program at compilation time, or called when a
program is executed "

Is This Answer Correct ?    2 Yes 3 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / ananya

what is the right answer?

Is This Answer Correct ?    1 Yes 2 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / rajesh thakur

main() is User defined function... for more discussion
contact me at neothecodebreaker@ymail.com.

Is This Answer Correct ?    2 Yes 4 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / saurabh kumar

well i think main is a predefine function because we can
not change the name of predefine function......

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More C Interview Questions

what is the difference between procedure oriented and object oriented progaming language

1 Answers  


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

0 Answers  


what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question

6 Answers  


What is calloc()?

0 Answers   Adobe,


main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",x,y,z); }

1 Answers   CodeChef,


What is true about the following C Functions (a) Need not return any value (b) Should always return an integer (c) Should always return a float (d) Should always return more than one value

2 Answers   DynPro, TCS,


Why do we need arrays in c?

0 Answers  


How many levels deep can include files be nested?

0 Answers  


int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?

6 Answers   TCS,


largest Of three Number using without if condition?

0 Answers  


what is the use of ‘auto’ keyword?

1 Answers  


how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.

2 Answers  


Categories