Popular posts from this blog
PPS UNIT 2 Notes
Assignment Operators Program
# include <stdio.h> int main () { int a = 5 , c; c = a; // c is 5 printf ( "c = %d\n" , c); c += a; // c is 10 printf ( "c = %d\n" , c); c -= a; // c is 5 printf ( "c = %d\n" , c); c *= a; // c is 25 printf ( "c = %d\n" , c); c /= a; // c is 5 printf ( "c = %d\n" , c); c %= a; // c = 0 printf ( "c = %d\n" , c); return 0 ; }

Comments
Post a Comment