main is a predefined or user define function
if user defined why?
if predefined whay?
Answer Posted / shankar dayal
main() function is niether predefined nor user defined function. Because if it is predefined, when program is written in main() function then given their own logic then how it is predefined. Another one if it is user defined, then we can write the any function name on the place of main(). So main() is niether a predefined nor user defined function.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
How many bytes are occupied by near, far and huge pointers (dos)?
What is 1d array in c?
Explain how do you sort filenames in a directory?
How can I automatically locate a programs configuration files in the same directory as the executable?
Tell us the use of fflush() function in c language?
What is wrong with this initialization?
What are Macros? What are its advantages and disadvantages?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Is c is a low level language?
how many key words availabel in c a) 28 b) 31 c) 32
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
Write a program to print fibonacci series without using recursion?
I came across some code that puts a (void) cast before each call to printf. Why?