M182-lect1 pdf
M182-lect1 pdf
M182-lect1 pdf
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
A simple C programFunction /* helloworld.c = a block of statementswith This a given program name. prints "Hello world!" on the screen.*/This is the definition of a functioncalled main, which contains two#includestatements.int main () {}printf("Hello world!\n");return 0;main() is invoked(called) automaticallywhen a program beginsexecution. Otherfunctions can be calledfrom inside main()27