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

Calculate Factorial of a given no with help of Recursion

Get a string Using gets() function

Use of conditional Operators