Program to accept two numbers and print the sum of given two numbers by using pointers - 100 Most Important C# Programs

100 Most Important C# Programs

56. Program to accept two numbers and print the sum of given two numbers by using pointers

Code:

# include <stdio.h>

# include <conio.h>

main( )

{

int a, b,c;

clrscr( );

a=10;

b=20;

c=*(&a)+*(&b);

printf(“%d”,c);

getch( );

}