08.01.2023 Views

Learn to Program with C_ Learn to Program using the Popular C Programming Language ( PDFDrive )

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2 ■ C – The Basics

30. What will happen when the computer attempts to execute the following:

p = 7;

q = 3 + p;

p = p + r;

printf("%d\n", p);

31. Suppose rate = 15. What is printed by each of the following?

printf("Maria earns rate dollars an hour\n");

printf("Maria earns %d dollars an hour\n", rate);

32. If m is 3770 and n is 123, what is printed by each of the following?

(a) printf("%d%d\n", n, m);

(b) printf("%d\n%d\n", n, m);

45

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!