Computer Science, asked by vikrambhat888, 1 year ago

answer the following

Attachments:

Answers

Answered by sachinarora2001
1
This is a function prototype declaring the function getint(). The function takes as pointer to an int as a parameter.

When prototyping a function it is not necessary to specify the parameters' names.

The prototype is missing a return type, which for C then defaults to int. Omiting a return type however is violating the recent C standard, so code doing so could be considered invalid.

An equivalent to

getint(int *);

though would be

int getint(int * pi);
Answered by Anonymous
61

Explanation:

This is a function prototype declaring the function getint(). The function takes as pointer to an int as a parameter.

When prototyping a function it is not necessary to specify the parameters' names.

The prototype is missing a return type, which for C then defaults to int. Omiting a return type however is violating the recent C standard, so code doing so could be considered invalid.

An equivalent to

getint(int *);

though would be

int getint(int * pi);

Similar questions