a) int b) float c) double d) depends on the data type of the ...
View QuestionThe value obtained in the function is given back to main by using ________ keyword.
a) return b) static c) new d) volatile Answer: a
View QuestionCan we use a function as a parameter of another function? [Eg: void wow(int func())].
a) Yes, and we can use the function value conveniently b) Yes, but we call the ...
View QuestionWhich function definition will run correctly?
a) int sum(int a, int b) return (a + b); b) int sum(int a, int ...
View QuestionWhich of the following function declaration is illegal?
a) int 1bhk(int); b) int 1bhk(int a); c) int 2bhk(int*, int []); d) all of the mentioned Answer: d
View QuestionWhich of the following is a correct format for declaration of function?
a) return-type function-name(argument type); b) return-type function-name(argument type){} c) return-type (argument type)function-name; d) all of the ...
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
static int x = 3;
x++;
if (x <= 5)
{
printf(“hi”);
main();
}
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
m();
}
void m()
{
printf(“hi”);
m();
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
m();
void m()
{
printf(“hi”);
}
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
void m();
void n()
{
m();
}
void main()
{
void m()
{
printf(“hi”);
}
}
What will be the output of the following C code? #include < stdio.h >
View Question