What is the default return type of a function


Asked by admin @ in Computer Science viewed by 318 People


The default return data type in function is
a) void
b) int
c) float
d) char

Answered by admin @



The default return data type in function is int

Answer: Option (b)

Explanation:

The default return data type in a function is int. In other words commonly if it is not explicitly mentioned the default return data type of a function by the compiler will be of an integer data type.

If the user does not mention a return data type or parameter type, then C programming language will inevitably make it an int.



Similar Questions

What is the return type of function id

Asked by admin @ in Computer Science viewed by 306 persons

What is the return type of function id ? a) intb) floatc) boold) dict​

What is the return type of the function sqrt

Asked by admin @ in Computer Science viewed by 280 persons

What type of value is returned by the sqrt function? (a) int, (b) float, (c) double, (d) All​

The ____ category of excel functions returns true false values

Asked by admin @ in Computers and Technology viewed by 282 persons

A logical function is a function that works with values that are either ____. a. true or false b. right or wrong c. absolute or relative d. positive or negative

The default data type for visual basic is

Asked by admin @ in Computer Science viewed by 366 persons

The default data type for Visual Basic isA. IntegerB. BooleanC. VariantD. String​

What is the return type of malloc or calloc

Asked by admin @ in Physics viewed by 283 persons

What is the return type of malloc() or calloc() pointer of allocated memory type int * void ** void *? no copy or spam is allowed

What is the functional classification of this type of joint

Asked by admin @ in Health viewed by 300 persons

The functional classification for immovable joints is _____ . A. Diarthroses B. Amphiarthroses C. Synarthroses D. Synchondroses

What are the different types of proteins and their functions

Asked by admin @ in Biology viewed by 320 persons

Describe at least three different functions of proteins and explain how the shape of a protein affects its function.

What are the functions of the 4 types of tissues

Asked by admin @ in Biology viewed by 329 persons

The heart is the structure that pumps blood to the rest of the body. It’s composed of and surrounded by four kinds of tissues—connective, muscle, epithelial and nervous tissues. How …

What are types of functions in c language

Asked by admin @ in Computer Science viewed by 363 persons

What are different types of functions in c language?

Count function in sql returns the number of

Asked by admin @ in Computer Science viewed by 324 persons

Count function in SQL returns the number of A.values. B.distinct values. C.groups. D.columns.

What is the default data type in ms access

Asked by admin @ in Computer Science viewed by 393 persons

Is the default data type in MS Access 2010.​

Which function returns a list of words in string

Asked by admin @ in Computer Science viewed by 289 persons

which of the following functions will return a list containing all words of the string. (a) find () (b) inder () (c) partition (d) split()​

The count function in sql returns the number of

Asked by admin @ in Computer Science viewed by 311 persons

Count function in SQL returns the number of A.values. B.distinct values. C.groups. D.columns.

What is the function of connective tissue explain its types

Asked by admin @ in Biology viewed by 327 persons

What is the function of connective tissues? Explain its types. (4 marks)?

Match the following epidermal cell type with its function keratinocytes

Asked by admin @ in Biology viewed by 360 persons

Which of the following cells and their functions are correctly matched? A) Melanocytes — protects cells in the stratum corneum from damaging effects of sun's rays B) Dendritic cells — …

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19018 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15805 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10969 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10401 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8721 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8135 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7840 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6485 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5788 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5691 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5474 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4980 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4970 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4682 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4486 persons