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 / manju

The code returns error as i is undeclared see in main int
=3 and instead of else eale is used.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the deal on sprintf_s return value?

645


What is sizeof int?

635


What is this infamous null pointer, anyway?

609


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

665


What are identifiers and keywords in c?

573






How can you tell whether two strings are the same?

832


Who developed c language?

642


In C programming, what command or code can be used to determine if a number of odd or even?

622


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?

1918


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2036


What are header files and what are its uses in C programming?

635


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1425


Explain what math functions are available for integers? For floating point?

614


What is structure packing in c?

608


Explain Function Pointer?

681