Beispiel #1
0
int main()
{
  int i = -2147483648;
  bool isPalindrome_num = false;
  isPalindrome_num = isPalindrome2(i);

  return 0;
}
Beispiel #2
0
void main() {
	printf("Please enter a number to check if it is a palindrome.\n");
	int num;
	int i;
	for (i=0; i<10; i++) {
		scanf("%d", &num);
		if (isPalindrome2(num)) {
			printf("%d is a palindrome\n", num);
		} else {
			printf("%d is not a palindrome\n", num);
		}
	}
}
Beispiel #3
0
int main(int argc, char* argv[])
{
    printf("%d\n",isPalindrome2("heeeh", 5));
}