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
What is the deal on sprintf_s return value?
What is sizeof int?
What is this infamous null pointer, anyway?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are identifiers and keywords in c?
How can you tell whether two strings are the same?
Who developed c language?
In C programming, what command or code can be used to determine if a number of odd or even?
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?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What are header files and what are its uses in C programming?
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
Explain what math functions are available for integers? For floating point?
What is structure packing in c?
Explain Function Pointer?