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
Explain how can I remove the trailing spaces from a string?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
How is null defined in c?
How to implement a packet in C
#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); }
what are the advantages of a macro over a function?
What is the explanation for prototype function in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is #include stdio h and #include conio h?
Explain what does a function declared as pascal do differently?
How can I do peek and poke in c?
What is a structure in c language. how to initialise a structure in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?