what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
Answer Posted / mahi
The code returns error as i is undeclared see in main
int =3 and
instead of
else eale is used.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How important is structure in life?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What do you mean by keywords in c?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Explain modulus operator.
How can I read/write structures from/to data files?
What is scanf_s in c?
What is a stream in c programming?
When should structures be passed by values or by references?
Who developed c language?
What is the significance of c program algorithms?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
write a c program for swapping two strings using pointer
What is 2c dna?