Previous: 8.5 Summary
Up: 8 Functions and Files
Next: 8.7 Problems
Previous Page: 8.5 Summary
Next Page: 8.7 Problems

8.6 Exercises

  1. main()
         {    long n;
    

    scanf("%d", &n); }

  2. main()
         {    long n = 12L;
    

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

  3. main()
         {    double x;
    

    scanf("%f", &x); }

  4. If x is 100 and z is 200, what is the output of the following:
    if (z = x)
              printf("z = %d, x = %d\n", z, x);

tep@wiliki.eng.hawaii.edu
Wed Aug 17 09:15:23 HST 1994