adplus-dvertising
frame-decoration

Question

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

void main()
{
   int a=10;
   myshow(a);
   myshow(&a);
}

int myshow(int b)
{
    printf("Received %d, ", b);
}

a.

Received 10, Received 10,

b.

Received 10, Received RANDOMNumber,

c.

Received 10, Received RANDOMNumber, with a compiler warning

d.

Compiler error

Posted under C Programming

Answer: (c).Received 10, Received RANDOMNumber, with a compiler warning

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 and pointers?

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.