home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int a,b,c; int m = 100; int *p1,*p2; clrscr(); printf("\n enter value of a: "); scanf("%d",&a); printf("\n enter value of b: "); scanf("%d",&b); p1 = &a; p2 = &b; c = *p1 + *p2 + m; printf("\nvalue of c= %d",c); getch(); }
Program Output
enter value of a: 10 enter value of b: 20 value of c= 130