Swapping Two Values With The Help Of Pointer




 #include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c;

printf("Enter Two Numbers :-");

scanf("%d%d",&a,&b);

c=a+b;

printf("Sum Of Numbers:- %d",c);

getch();

}



Output:-

Enter Two Numbers :-2

3

Sum Of Numbers:- 5

Comments

Popular posts from this blog

Check whether the no entered is Palindrome or not

Calculate Factorial of a given no with help of Recursion

Find max. and min. element in the integer array