answersLogoWhite

0

int a = 1 + 2;

----------

int a = 1;

int b = 2;

a += b;

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you add two numbers with out using operator in c language?

Not possible. Of course you can call a function which does the addition for you, but function-calling is also an operator in C.


Write a programme for substraction of two numbers in c language?

substracion of any two number program in c


How do you add more than two numbers in C plus plus?

sum = a + b + c;


How is possible to addition of two number without including header file in C language?

You do not need a header file to add two numbers in C. You do need the header files if you want to use the run-time library, which includes the ability to format and display the result.


Write a program to add two numbers using oop?

#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(); }


How we can write the algorithim of sum of two language?

Get the input of two numbers from the user.a,bAdd those two numbers and store the value in another variable.c=a+b;print the value c


Can you add two irrational numbers that are not conjugates of one another ie a plus b and a minus b to get a rational number?

You can also have any numbers like (a + c) and (b - c), where "c" is the irrational part, and "a" and "b" are rational.


Who to Write a programme for addition of two 100 digit numbers in c language?

The native C language will not permit the addition of two 100 digit numbers with native data types. Therefore, you need to simulate the 100 digit numbers differently, and that can be done various ways, including using an arbitrary precision math package, or BCD arithmetic, etc.


What are the arithmetic operator available in c?

The following arithmetic operators are available in c:+ - addition -> used to add two numbers- - subtraction ->used to subtract two numbers* - multiplication ->used to multiply two numbers/ - division -> used to divide two numbers% - modulus -> used to determine the remainder when two numbers are divided. a%b return the remainder when a is divided by b(can be used with only integer data types).


What two irrational numbers add up to 10?

There are an infinite number of such pairs. If a + b = 10 where a and b are rational, and if c is any irrational number, then x = a+c and y = b-c are both irrational numbers and x + y = a+c+b-c = 10


What are programming language that produced c?

C is a programming language. Example of C or C++ Programing would be the following: add matrices, get ip address, and read files.


Write a program in C language to multiply any two numbers without using in source code?

The question is malformed and incomprehensible.