Computer Science, asked by kumarpawar877, 6 months ago

#include <stdio.h>
int num;
int function(int n)
{
int num = 10;
return num;
}
int main(void)
{
printf("%d %d\n", num, function(20));
return 0;
}​

Answers

Answered by riditkumar919
2

Answer:

#include <stdio.h>

int num;

int function(int n)

{

int num = 10;

return num;

}

int main(void)

{

printf("%d %d\n", num, function(20));

return 0;

}

Ans : output will 10

as argument n in function declared but not used.

and function returns type is int so it will return 10

Similar questions