C Program – Adding two no without using + operator

by Nideesh C on May 11, 2011 · 0 comments

in C Programming




//Downloaded From theonlinetutorials.com
//Source code
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a=3000,b=20,sum;
char *p;
p=(char *)a;
sum= (int)&p[b]; //adding a & b
printf("Answer is :");
printf("%d",sum);
getch();
return 0;
}



Not Satisfied ? Just search & get the result

Related Posts Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. C program – Operator Precedence
  2. C Program to find the perfect numbers below a given number.
  3. C program to accept a matrix of order M x N and find the sum of each row and each column of a matrix
  4. C Program – Find the sum of secondary diagonal of a Matrix
  5. C Program to find the sum of the sine series

Leave a Comment

Previous post:

Next post: