Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following C code?
#include < stdio.h >
int m()
{
printf(“hello”);
}
void main()
{
int k = m();
printf(“%d”, k);
}

What will be the output of the following C code?
#include < stdio.h >
int m()
{
printf(“hello”);
}
void main()
{
int k = m();
printf(“%d”, k);
}
a) hello5
b) Error
c) Nothing
d) Junk value

Answer: a

Join The Discussion