1. The statement scanf(“%d%*ld%f), &days, &price); (A) generates a compilation error, (B) generates a runtime error, (C) reads an int and long into days and price, (D) reads first and third data items...


1. The statement scanf(“%d%*ld%f), &days, &price); (A) generates a compilation error, (B) generates a runtime error, (C) reads an int and long into days and price, (D) reads first and third data items into days and price, respectively.


2. Pick the odd item out: (A) %f, (B) %u, (C) %d, (D) %ld.


3. The printf function returns (A) the number of words written, (B) the number of characters written, (C) 1 on success, (D) none of these.


4. The statement printf(“%f%f\n”, f1, f2, f3); (A) generates a compilation error, (B) prints f1 and f2 only, (C) prints f1, f2 and junk, (D) none of these



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here