Abstract
Let us write a program that has comments in it and outputs a "Hello World!" message on one line and "C rocks!" on a new line.
#include <stdio.h> int main(void) {       // this is a comment       /* This is an       multi-line comment */       printf("Hello World.\n");       printf("C rocks!.\n"); }
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 Slobodan Dmitrović
About this chapter
Cite this chapter
Dmitrović, S. (2021). Exercises. In: Modern C for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6643-4_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-6643-4_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-6642-7
Online ISBN: 978-1-4842-6643-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)