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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

sum of two integers values only other then integer it should print invalid input.

1 Answers  


Why flag is used in c?

0 Answers  


What is %g in c?

0 Answers  


Linked lists -- can you tell me how to check whether a linked list is circular?

0 Answers  


What are identifiers c?

0 Answers  






What are the string functions? List some string functions available in c.

0 Answers  


What does d mean?

0 Answers  


Do character constants represent numerical values?

0 Answers  


main() { int i; printf("%d",((i=1)*i-- - --i*(i=-3)*i++ + ++i)); } ans is 24 bt how?pls tell smbody............

3 Answers  


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

0 Answers   Aspire, Infogain,


write a method for an array in which it can display the largest n next largest value.

1 Answers   Value Labs,


What is actual argument?

0 Answers  


Categories