answersLogoWhite

0


Best Answer

#include"stdio.h"

int main ( int argc, char *argv[ ] )

{

if(argc == 2)

printf("Sum of Two Numbers: %d \r\n", atoi( argv[1] ) + atoi( argv[2] ) );

else

printf( "In-valid number of arguments !! \r\n" );

return 0;

}

Regards,

Lakshmi Sreekanth

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to find sum of two numbers in c language without using variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you accept sum and print numbers without creating variables?

It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include<stdio.h> main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........


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

The question is malformed and incomprehensible.


How do you write a program in C plus plus plus plus How do you write a program in C to swap two variables without using the third oneo swap two variables without using the third one?

To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;


What is a mathematical phrase that contains operations, numbers, and/or variables without equal signs.?

Algebraic expression


How do you write a program in Perl to swap two variables without using the third one?

Use list assignment i.e. for two variables $a, $b: ($a,$b) = ($b,$a)


How many times will the program will print Language?

Without seeing the program, I can only say: 'zero or more times'


What does terms of an expression mean?

An expression is a collection of numbers and variables, along with mathematical operations, but without an equality (or inequality) symbol.


What is the definition of a computer program?

An organized list of instructions that, when executed, causes the computer to behave in a predetermined manner. Without programs, computers are useless.A program is like a recipe. It contains a list of ingredients (called variables) and a list of directions (called statements) that tell the computer what to do with the variables. The variables can represent numeric data, text, or graphical images.


Which language is directly understood by the computer without translation program?

That would be assembly language or machine language, and just so you know, it is very difficult to learn.


How do you write a program in C to swap two variables without using the third one using XOR?

a=a^b; b=a^b; a=a^b;


Why you use different loops in c language?

We use this in order to make program easier and less complex.some program cannot be performed without loops


Is it possible to change the language of a Korean Windows XP program into English without reinstalling a whole new program?

probably not google the question to see why