Computer Science, asked by Anonymous, 9 months ago

int read_req(void)
{
char buffer[300];
int i;
gets(buffer);
return i;
}

Please provide me an output for aforementioned program​

Answers

Answered by Anonymous
9

Answer:

The following is a C code-

int main(void)

{

char buff [10 ] ;

memset(buff,0,size of(buff));

gets(buffs);

printf("The buffer entered is [%s]",buff);

return 0 ;

}

A. The program assigns a memory area to buff successfully and works fine.

B. The program may not compile properly.

C. The program is compiled but it may lead to buffer over overflow sometimes.

D. The program has no issue.

HOPE! it's helps u

Answered by Anonymous
3

Explanation:

<marquee>♥mark as brainliest..✌♥</marquee>

Attachments:
Similar questions