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 / shrinidhi
in the question in 'func' function there is a word 'eale'.
what u mean by that? if it is 'else' then the ans is "1".
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are # preprocessor operator in c?
How do I determine whether a character is numeric, alphabetic, and so on?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
explain what is fifo?
program to convert a integer to string in c language'
How can I sort more data than will fit in memory?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Explain a pre-processor and its advantages.
Why c is called top down?
What is the difference between single charater constant and string constant?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is the use of parallelize in spark?