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 / ravinderreddy
answer will be 0 not 1
Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What are the 4 types of organizational structures?
can anyone please tell about the nested interrupts?
What's the total generic pointer type?
What are the characteristics of arrays in c?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What does %2f mean in c?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What are Macros? What are its advantages and disadvantages?
Are negative numbers true in c?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
How can I dynamically allocate arrays?
What are the uses of null pointers?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What are formal parameters?