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
When should the volatile modifier be used?
Difference between constant pointer and pointer to a constant.
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What is the need of structure in c?
explain how do you use macro?
Where we use clrscr in c?
Why are algorithms important in c program?
Why does the call char scanf work?
Write a program to swap two numbers without using third variable?
I heard that you have to include stdio.h before calling printf. Why?
can anyone suggest some site name..where i can get some good data structure puzzles???
What are the uses of a pointer?
explain what are pointers?
When should a type cast not be used?
What are near, far and huge pointers?