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


Please Help Members By Posting Answers For Below Questions

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?

2027


What are the 4 types of organizational structures?

702


can anyone please tell about the nested interrupts?

1767


What's the total generic pointer type?

703


What are the characteristics of arrays in c?

699






PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1823


What does %2f mean in c?

821


Which control loop is recommended if you have to execute set of statements for fixed number of times?

936


What are Macros? What are its advantages and disadvantages?

750


Are negative numbers true in c?

684


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.

1701


How can I dynamically allocate arrays?

690


What are the uses of null pointers?

675


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1936


What are formal parameters?

751