adplus-dvertising
frame-decoration

Question

What is the output of C Program with functions?
void myshow(int);

void main()
{
   int a=10;
   printf("%d ", a);
   myshow(a);
   printf("%d", a);
   
}

void myshow(int k)
{
   k=20;
}

a.

10 10

b.

20 20

c.

10 20

d.

Compiler error

Posted under C Programming

Answer: (a).10 10

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of C Program with functions?

Similar Questions

Discover Related MCQs

Q. Choose correct statements about C Language Pass By Value.

Q. What is the limit for number of functions in a C Program?

Q. Every C Program should contain which function?

Q. What is the minimum number of functions to be present in a C Program?

Q. What is the maximum number of statements that can present in a C function?

Q. What characters are allowed in a C function name identifier?

Q. Arguments passed to a function inC language are called ___ arguments.

Q. Arguments received by a function in C language are called ___ arguments.

Q. Choose a corrects statement about C language function arguments.

Q. Choose a correct statement with C Functions.

Q. Choose a non Library C function below.

Q. What is the default return value of a C function if not specified explicitly?

Q. What are the data type of variables that can be returned by a C Function?

Q. A recursive function can be replaced with __ in c language.

Q. A recursive function is faster than __ loop.

Q. A recursive function without If and Else conditions will always lead to

Q. What is the C keyword that must be used to achieve expected result using Recursion?

Q. How many functions are required to create a recursive functionality?

Q. Choose a correct statement about Recursive Function in C language.