Developer community
0 votes
45 views
asked by Geek (15.3k points) 17 40 60 | 45 views

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 by Guru (39.1k points) 10 22 34

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked by keem Expert (13.2k points) 27 40 59 | 33.5k views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users