MCQOPTIONS
Saved Bookmarks
| 1. |
Read the following program. findPalindrome { char *str; char *str1; str = str1; while(str1 != NULL) { str1++; } while(str!=NULL) { if(str1--!= str++) { printf("Not palindrome"); return } } printf("Palindrome"); } This function will work correctly for which string? |
| A. | even palindrome |
| B. | odd palindrome |
| C. | both even and odd |
| D. | none of the above |
| Answer» D. none of the above | |