File:  [CSRG BSD Unix] / 43BSD / usr.lib / learn / C / L1.1f
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

#print
(Section 1.2)
Write a program to print
the value of the character 'X' in
octal.  Compile it and run it.
Then type ready.
#user
a.out >test
grep 130 test >/dev/null
#succeed
A possible solution:

main()
{
	printf("%o\n", 'X');
}
#log
#next
2.1a 10

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.