English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

main()
{
int a,b;
a=-3--3;
b=-3--(-3);
printf("a=%d b=%d",a,b);
}

2006-06-12 13:25:08 · 4 answers · asked by nikki 2 in Computers & Internet Programming & Design

output is a=0 b=-6

2006-06-12 17:01:12 · update #1

4 answers

its just simple math. for a you simply subtracting -3 from -3 which ends up 0. for b you are subtracting 3 from -3 which ends up -6. -(-3) is the same as +3.

2006-06-13 01:51:23 · answer #1 · answered by justme 7 · 0 0

You have sent source code, not output. What do you want to be explained?

2006-06-12 14:02:18 · answer #2 · answered by alakit013 5 · 0 0

AScii accepts purely advantageous values no adverse values are to be entered. if u enter the ssome +ve variety for 'i' it is explicitly switched over into char and the corresponding fee character is displayed

2016-12-08 08:36:40 · answer #3 · answered by Anonymous · 0 0

wat exactly is the question??

2006-06-12 19:25:56 · answer #4 · answered by coyote 2 · 0 0

fedest.com, questions and answers