main is a predefined or user define function
if user defined why?
if predefined whay?
Answer Posted / mayank jain
Main() is a user define function because user define it, and main is a keyword that is predefined, that also tell the compiler for the execution of program is starting from here.
when we Write the program we never declare the main function anywhere, only define it.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What do you understand by friend-functions? How are they used?
How pointers are declared?
How do I send escape sequences to control a terminal or other device?
Differentiate between functions getch() and getche().
What is the use of a conditional inclusion statement in C?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
What is structure pointer in c?
What is actual argument?
Write a program to check palindrome number in c programming?
What are the standard predefined macros?
What is enumerated data type in c?
How the c program is executed?
Are the outer parentheses in return statements really optional?
FILE PROGRAMMING
Can you please explain the difference between syntax vs logical error?