Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in C Programming by (45k points)

A) The program must have at least one function.

B) The program does not require any function.

C) Input data

D) Output data

E) None of these

2 Answers

0 votes
by (99k points)

The correct answer to the question “What is required in each C program” is, option (a). The program must have at least one function. Any C program will have a function, and function is nothing but a piece of code. If you wish to learn C Programming, enroll in Intellipaat's C Programming course. and Watch the C Programming Full Course from industry experts.

0 votes
by (1.9k points)

The correct option is A) The program should contain at least one function.

Explanation: At least a C program lacking other user-defined functions should have main(). That is where a C program begins to run. Thus, although any user defined function is present or not in a given program, there must surely exist at least one, a main() function to carry on the execution process.

Why the others are incorrect:

B) There must not be any need for the functions in a program. This is simply incorrect as the main() function should always be added in any program.

C) Input data: Not all programs require input data. There are programmes that work without the interference of some inputs.

D) Output data: Such data is optional. Some applications do not display anything at all.

E) None of these are This is not true since the correct Answer is A 

1.2k questions

2.7k answers

501 comments

693 users

Browse Categories

...