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 / fazlur rahaman naik & praneeth
the answer will b 1.
| Is This Answer Correct ? | 26 Yes | 3 No |
Post New Answer View All Answers
Why is extern used in c?
How can I find out the size of a file, prior to reading it in?
What is function prototype?
What are the types of pointers in c?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Why is this loop always executing once?
Write a program to find the biggest number of three numbers in c?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What is the use of a semicolon (;) at the end of every program statement?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
why do some people write if(0 == x) instead of if(x == 0)?
Where in memory are my variables stored?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is the difference between procedural and declarative language?
What does stand for?