C

Monday, 2 October 2017

Program Of Increment and Decrement Operator.

#include<stdio.h>
main()
{
int x,y,exp1,exp2;
clrscr();
x=10;
y=15;
exp1=x* ++y;
printf("Value of the first expression is: %d\n",exp1);
x=10;
y=15;
exp2=x* y++;
printf("Value of second expression is : %d\n",exp2);
}

No comments:

Post a Comment

Write a program to draw a circle using mid-point circle drawing algorithm.

#include<iostream.h> #include<graphics.h> #include<conio.h> void drawcircle(int x0, int y0, int r) {         ...