program to find maximum of two numbers using pointers
sum = a + b + c;
By learning how to program on C+.
fdsgfhgdfhgdf
The property which states that for all real numbers a, b, and c, their sum is always the same, regardless of their grouping:(a + b) + c = a + (b + c)
#include<iostream.h> #include<conio.h> void main() { int a, b, c; clrscr(); cout<<"enter the two numbers"; cin>>a; cin>b; c=a+b; cout<<"Addition of two numbers="<<c; getch(); }
1. Write the program 2. Compile and link it 3. Execute it by entering its name at command prompt
substracion of any two number program in c
No.
program to find maximum of two numbers using pointers
sum = a + b + c;
GOUDHMARINI
You can make use of pointers to achieve this.void add( int *a, int *b){(*a) += (*b);}Now if two numbers a and b are given and you need to store the value in variable c, then you would perform:c = a;add(&c,&b);
write a program in C that prompts the user with the following lines: a) Add two integers c) Compare two integers for the larger t) Test an integers for odd or even q) Quit
--THE SUM OF TWO NUMBERS: declare a number(2); b number(2); c number(2); begin a:=&a; b:=&b; c:=a+b; dbms_output.put_line(a ' + 'b' = 'c); end;
Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call
A+(B+C**3) (A-(+D+B/A+B)