Pages
Home
skip to main
|
skip to sidebar
Computer Programming
Write a program in C language to add two numbers using pointers
Tuesday, 1 July 2014
#include <stdio.h>
#include <conio.h>
int main()
{
int num1, num2, *p, *q, sum;
printf("Enter two integers to add: ");
scanf("%d %d", &num1, &num2);
p = &num1;
q = &num2;
sum = *p + *q;
printf("Sum of given numbers is: %d",sum);
getch();
}
Newer Post
Older Post
Home
Categories
Advanced Programs
Array
Assembly Language
C Language
C Language Tutorials
C++
C++ Language
C++ Tutorials
Dev
File Handling
for loop
Functions
Graphics
If-Else-If (Conditions)
Interview Questions
Link List
Loops (For While Do-While)
Matrix
Mobile number details
OOP
pointer
Programs for Beginners
Recursion
Simple Programes (Beginers)
Strings
Structure
Switch
Track phone number
whose number is this calling me
whose number lookup
Archives
►
2018
(1)
►
February
(1)
▼
2014
(25)
▼
July
(10)
Write a program in c language to reverse a string ...
Write a program in c language to reverse a string ...
Write a program in c language to compare two strin...
Write a program in c language to compare two strin...
Write a program to Compare two strings by using st...
Write a program that will determine the prime fact...
Write a program in C language to add two numbers u...
Write a program in c language to print Floyd's tri...
Write a program to find given given number is arms...
Write a program in c language to find minimum numb...
►
June
(2)
►
May
(2)
►
March
(4)
►
February
(6)
►
January
(1)
►
2013
(116)
►
July
(16)
►
June
(8)
►
May
(27)
►
April
(65)
Search Box
Most Reading
Tags
Advanced Programs
Array
Assembly Language
C Language
C Language Tutorials
C++
C++ Language
C++ Tutorials
Dev
File Handling
for loop
Functions
Graphics
If-Else-If (Conditions)
Interview Questions
Link List
Loops (For While Do-While)
Matrix
Mobile number details
OOP
pointer
Programs for Beginners
Recursion
Simple Programes (Beginers)
Strings
Structure
Switch
Track phone number
whose number is this calling me
whose number lookup
About Me
Awais
Muhammad Awais Rahman
Unknown
Contact Form
Name
Email
*
Message
*
Copyright © 2013.
Computer Programming
.
All Rights Reserved