adplus-dvertising
frame-decoration

Question

What is the output of this C code?

include <stdio.h>
void m()
{
printf("hi");
}
void main()
{
m();
}

a.

hi

b.

Run time error

c.

Nothing

d.

Varies

Posted under C Programming

Answer: (a).hi

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 this C code? include <stdio.h> void m() { printf("hi"); } void main() { m(); }

Similar Questions

Discover Related MCQs

Q. Which of the following is a correct format for declaration of function?

Q. Which of the following function declaration is illegal?

Q. Which function definition will run correctly?

Q. Can we use a function as a parameter of another function?

Q. The value obtained in the function is given back to main by using ________ keyword?

Q. What is the return-type of the function sqrt() ?

Q. Which of the following function declaration is illegal?

Q. What is the problem in the following declarations?

int func(int);
double func(int);
int func(float);

Q. What is the default return type if it is not specified in function definition?

Q. functions can return structure in c?

Q. functions can return enumeration constants in c?

Q. Functions in C are ALWAYS:

Q. Global variables are:

Q. Property of external variable to be accessed by any source file is called by C90 standard as

Q. What is the scope of an external variable?

Q. What is the scope of a function?

Q. Array sizes are optional during array declaration by using ______ keyword.

Q. Which of following is not accepted in C?

Q. Which of the following cannot be static in C?

Q. Functions have static qualifier for its declaration by default.