#include"stdio.h" int main() { char ch='A'; if(ch%2==0) { printf("even number!"); } else { printf("no!"); } getch(); return 0; }
#include<stdio.h> main () { char a[] = "abcdef"; int b[6] = {0}; char *p = a; int i = 0; while(*p) { b[i++] = (int)*p; p++; } for(i = 0;i<6;i++) printf("%d ",b[i]); printf("\n"); }