Write a program to use pre decrement operator.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter the first number\n");
scanf("%d",&a);
b=--a;
printf("%d",a);
printf("\n%d",b);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter the first number\n");
scanf("%d",&a);
b=--a;
printf("%d",a);
printf("\n%d",b);
getch();
}
I love learning and I love people and you’re a person and you’re here to learn. Hopefully, you can see where I’m going with this.
0 Comments
Have any query? Want any type of module?
Please comment it down and let me know.