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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the usage of pointer in c?

701


Write a program to know whether the input number is an armstrong number.

662


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

762


Explain void pointer?

586


What are all different types of pointers in c?

572






how do you programme Carrier Sense Multiple Access

1510


how to write a c program to print list of fruits in alpabetical order?

1785


Can a file other than a .h file be included with #include?

681


What does return 1 means in c?

579


a value that does not change during program execution a) variabe b) argument c) parameter d) none

688


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1258


What is a stream?

641


Write a program to reverse a given number in c language?

616


What does %p mean?

587


How can I make sure that my program is the only one accessing a file?

674