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
Write a program in assembly language to multiply matrices of 3x3 [Updated]
Tags: Multiplication is assembly language, multiplication of matrices in assembly language, Note: This program is compiled in EMU software...
Write a program to get a number from user and print on screen in c language
#include <stdio.h> // header file which contain printf(); funcion. #include <conio.h> // header file which contain getch() fu...
You just missed a call? Want to get details of that phone number?
Hey Guys, Today in this tutorial I'll teach you guys how you can get details of any mobile number. This is very simple to track any ph...
Write a program for electricity bill [Updated]
PROGRAM OF ELECTRICTY BILL(NOTE: IT IS APPLICABLE UNDER 200 UNITS ) #include<stdio.h> #include<conio.h> int main() {...
Write a program in C language that replace spaces by another character or remove spaces
#include <iostream> #include <conio.h> using namespace std; int main() { char arr[500]; int ch, count = 0; ...
Write a program in C++ to print Pascal Series on screen
#include <stdio.h> #include <conio.h> long factorial(int); int main() { int i, n, c; printf("Enter the ...
Write a program to generate random numbers as in a die rollong 36000 times and tell its frequency.
#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { srand(time (NULL) ); int dice1,...
Fundamentals of C Language Tutorial#1
History of C Language C is a general perpus programing language. It is evolved from two previous languages B and BCPL. In 1972 Dennis R...
Write a program in c language to reverse a string in reverse order without using strrev function or any other function
#include <stdio.h> #include <string.h> #include <conio.h> int main() { char str[100], ch, str2[100]; int count = ...
Write a program in c language to reverse a string by using strrev function or ptrint a string in reverse order
#include <stdio.h> #include <string.h> #include <conio.h> int main() { char str[100]; printf("Enter a s...
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