Adding Two Numbers Using Pointer in C Program Tamil


#include<stdio.h>
#include<conio.h>
void main()
{
     int a,b,*p,*q,tot;
     clrscr();
     printf("\nEnter the two numbers : ");
     scanf("%d%d",&a,&b);
     p=&a;
     q=&b;
     tot=*p+*q;
     printf("\Total :%d",tot);
     getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming