search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
42 views
asked Geek 15.3k points 16 41 63

1 Answer

0 votes

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c,d,*ap,*bp;

clrscr();

printf(“Enter two numbers:”);

scanf(“%d%d”, &a,&b);

ap=&a;

bp=&b;

c=a+b;

d=*ap+*bp;

printf(“\n sum of A &B using variable:%d”,c);

printf(“\n sum of A &B using pointer:%d”,d);

getch();

}

Output:

Enter two numbers: 8 4

Sum of a & B using variable:12

Sum of a & B using pointer:12 

answered Guru 39.1k points 10 21 33

Related questions

0 votes
1 answer 21 views
0 votes
1 answer 779 views
779 views
Write a c program to add two numbers without add operator?
asked steve21
0 votes
1 answer 505 views
0 votes
1 answer 33.5K views
...