In which category does main function belong??
Answers were Sorted based on User's Feedback
Answer / ektasingh
main is not user defined.(user defined functions can have
any name )
main is not inbuilt.(it has not been defined in any library)
what is main????
Is This Answer Correct ? | 6 Yes | 3 No |
Main is a user defined function.
It has an important property that it is first recognised by compiler. So it must be present in a program.
A user defined function is one whose defination is given by user and Since you define main's working. So it is a user defined function.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / devi
main function is used in C,C++,Java languages which is
first read by the compiler.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / abhinendra bhadauriya
main is an thread which create process in the memory with the help of operating system
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sonu
main function part of class so its name is main, and it is execute execute by the compiler outside the class so it is made public, and it is getting the memory at compile time so it is static , and it is not return any value so it is void .
Is This Answer Correct ? | 0 Yes | 0 No |
What is extern c used for?
What is a symbolic constant?
What is static function in c?
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
How can I get random integers in a certain range?
without using control structures and control structures find the max and min of given 2 nos
the number 138 is called well ordered number because the three digits in the number (1,3,8) increase from left to right (1<3<8). the number 365 is not well ordered coz 6 is larger than 5. write a program that wull find and display all possible three digit well ordered numbers. sample: 123,124,125,126,127,128,129,134 ,135,136,137,138,139,145,146,147 148 149,156.......789
What is the maximum length of an identifier?
Write the Program to reverse a string using pointers.
what is difference between C and C++
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.