Solution for Exercise 18-6
ex1806
#include <stdio.h> int main() { char c = 'c'; int i = 123; float f = 98.6; double d = 6.022E23; printf("Address of 'c' %p\n",&c); printf("Address of 'i' %p\n",&i); printf("Address of 'f' %p\n",&f); printf("Address of 'd' %p\n",&d); return(0); }
Notes
* Yes, this source code is based on Listing 18-1, as well as Exercise 18-1.
Copyright © 1997-2024 by QPBC.
All rights reserved