// COMP1511 lecture example // // Print "Andrew Rocks!" - using ASCII codes for the characters // // Compare the 8 andrew_rocks?.c programs which are all equivalent // to get a better understanding of how & why C encodes character sequences // // Andrew Taylor - andrewt@unsw.edu.au // 9/4/2017 #include int main(void) { putchar(65); // printf("%c", 65) is equivalent putchar(110); putchar(100); putchar(114); putchar(101); putchar(119); putchar(32); putchar(82); putchar(111); putchar(99); putchar(107); putchar(115); putchar(33); putchar(10); return 0; }