What function must all c programs have
Answers
Answered by
0
Toggle navigation
PROGRAMMING
C
THE IMPORTANCE OF THE MAIN() FUNCTION IN C PROGRAMMING
THE IMPORTANCE OF THE MAIN() FUNCTION IN C PROGRAMMING

RELATED BOOK
C All-in-One Desk Reference For Dummies
By Dan Gookin
All C language programs must have a main()function. It’s the core of every program. It’s required. The main() function doesn’t really have to do anything other than be present inside your C source code. Eventually, it contains instructions that tell the computer to carry out whatever task your program is designed to do. But it’s not officially required to do anything.
THE BASIC MAIN() FUNCTION
When the operating system runs a program in C, it passes control of the computer over to that program. This is like the captain of a huge ocean liner handing you the wheel. Aside from any fears that may induce, the key point is that the operating system needs to know where inside your program the control needs to be passed. In the case of a C language program, it’s the main() function that the operating system is looking for.
At a minimum, the main() function looks like
PROGRAMMING
C
THE IMPORTANCE OF THE MAIN() FUNCTION IN C PROGRAMMING
THE IMPORTANCE OF THE MAIN() FUNCTION IN C PROGRAMMING

RELATED BOOK
C All-in-One Desk Reference For Dummies
By Dan Gookin
All C language programs must have a main()function. It’s the core of every program. It’s required. The main() function doesn’t really have to do anything other than be present inside your C source code. Eventually, it contains instructions that tell the computer to carry out whatever task your program is designed to do. But it’s not officially required to do anything.
THE BASIC MAIN() FUNCTION
When the operating system runs a program in C, it passes control of the computer over to that program. This is like the captain of a huge ocean liner handing you the wheel. Aside from any fears that may induce, the key point is that the operating system needs to know where inside your program the control needs to be passed. In the case of a C language program, it’s the main() function that the operating system is looking for.
At a minimum, the main() function looks like
Similar questions
Physics,
6 months ago
Science,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago