/* 0703.c */ #include <stdio.h> int main() { char a,b,d,c; a = 'W'; /* kode ASCI W=87 */ b = a + 24; /* kode ASCI (87 + 24) = 111 = 'o' */ c = b + 8; /* kode ASCII (111 + 8) = 119 = 'w' */ d = '\n'; printf("%c%c%c%c",a,b,c,d); return(0); }
Wow Process returned 0 (0x0) execution time : 0.097 s Press any key to continue.
Kode ASCII tiap karakter bisa dilihat dari web https://id.wikipedia.org/wiki/ASCII
Tidak ada komentar:
Posting Komentar