Hi,
main()
{
}
Is a user defined function or Built in Functionn
Answer Posted / ekta
1: Main is not a user defined function because user defined
functions can be given be given their own names .We can not
give a new name to main.
2:Main is not an inbuilt function because every inbuilt
function is defined in a specific library .But main has not
been defined in any library.it even works without libraries.
So finally main is just a convention to start a program.
Every language like java,c++,c all start their execution
from main.All programs need a starting point.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What are enums in c?
Which is more efficient, a switch statement or an if else chain?
What is methods in c?
What does emoji p mean?
What is const and volatile in c?
What is the difference between procedural and functional programming?
What is main return c?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Give the rules for variable declaration?
Does * p ++ increment p or what it points to?
Create a simple code fragment that will swap the values of two variables num1 and num2.
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is the advantage of an array over individual variables?
What is binary tree in c?