Main must be written as
a.the first function in the program
b.Second function in the program
c.Last function in the program
d.any where in the program
Answer Posted / devvv
main function is a basic in c programming
language.generally main is written first.but when executing
modular programs ,to avoid prototyping, other functions
are written first.so main can be written anywhere in a
program.but atleast one of the other functions must be
declared in main.
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
about c language
What is 02d in c?
How many loops are there in c?
What are structure types in C?
What is the description for syntax errors?
What are header files in c programming?
What are type modifiers in c?
What are the types of unary operators?
how to write optimum code to divide a 50 digit number with a 25 digit number??
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
How can I remove the trailing spaces from a string?
What is variable initialization and why is it important?
Why is structure important for a child?
How many levels of pointers can you have?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?