UMBC CMSC 104 Spring 2001 | CSEE | 104 | current 104 |
gcc -ansi -Wall program.c
All homework and projects are due at the beginning of class, within the first 15 minutes of class on the date listed in the Lecture Schedule. Assignments will be accepted up to one day late with a 10% reduction in grade. To receive partial credit, late assignments must contain proof that they were submitted within one day of the due date. Written assignments must therefore be handed to me or to the TA in person, or they must be signed and dated by an instructor or staff member in ECS 210 and left in my mailbox. No other late assignments will be accepted, except as specified under the University Policy. No makeup exams will be given, except as specified under the University Policy.
#include
main ()
{
int i=1, j=2, k=3, m=4;}
printf("Inital Values : i=%d j=%d k=%d m=%d\n", i, j, k, m);
j *= k = m + 5;
printf("After j *= k = m + 5 : i=%d j=%d k=%d m=%d\n", i, j, k, m);
Program Output:
Inital Values : i=1 j=2 k=3 m=4
After j *= k = m + 5 : i=1 j=18 k=9 m=4