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 / shruti
if eale is else
and
int = 3 is int i = 3
then,
the answer is 1...
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
List some applications of c programming language?
What is a lookup table in c?
Why is structure padding done in c?
Tell me about low level programming languages.
Why ca not I do something like this?
What is difference between static and global variable in c?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
Explain what happens if you free a pointer twice?
Difference between linking and loading?
Is it possible to have a function as a parameter in another function?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
Suggesting that there can be 62 seconds in a minute?
What is void pointers in c?
What’s a signal? Explain what do I use signals for?