943,772 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 779
  • C++ RSS
Nov 29th, 2008
0

my final questions help please

Expand Post »
1. printf("%d", 10*5/10); what is this result?

2. printf("%d", 10+5-5); what is this result?

3. a=d++ +(b=a); a=4,b=4,d=4 a=?

4. c=a+ a++ - b--; a=4,b=4 c=?

5. c=a+ ++a - b--; a=4,b=5 c=?

6. if(a==0 && b==0) printf("1);
else
if(a==0 && b==0) printf("2");
else printf("3");

(if a=1 and b=0) what is the result?
(if a=0 and b=0) what is the result?
(if a=0 and b=1) what is the result?

please help me thanks regards...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
svetlana6167 is offline Offline
2 posts
since Nov 2008
Nov 29th, 2008
0

Re: my final questions help please

1. printf("%d", 10*5/10); what is this result?

2. printf("%d", 10+5-5); what is this result?

3. a=d++ +(b=a); a=4,b=4,d=4 a=?

4. c=a+ a++ - b--; a=4,b=4 c=?

5. c=a+ ++a - b--; a=4,b=5 c=?

6. if(a==0 && b==0) printf("1);
else
if(a==0 && b==0) printf("2");
else printf("3");

(if a=1 and b=0) what is the result?
(if a=0 and b=0) what is the result?
(if a=0 and b=1) what is the result?

please help me thanks regards...
Looks like a homework dump. Have you tried it? At least cut and paste numbers 1 and 2 into a program and run it and see for yourself. You'll find out exactly what the result is.
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,374 posts
since Jan 2008
Nov 30th, 2008
0

Re: my final questions help please

ya u can see all by just putting them in to your simple program and check the result...................
Reputation Points: 5
Solved Threads: 3
Newbie Poster
gautam610 is offline Offline
13 posts
since Jul 2008
Nov 30th, 2008
0

Re: my final questions help please

Or you could just spam the crap out of the online forums and waste peoples time in parallel.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Nov 30th, 2008
0

Re: my final questions help please

no i dont wanna do spam.i ask my question there toobecause i dont know how to use a complier.please help me...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
svetlana6167 is offline Offline
2 posts
since Nov 2008
Nov 30th, 2008
0

Re: my final questions help please

no i dont wanna do spam.i ask my question there toobecause i dont know how to use a complier.please help me...
Cross-posting is considered bad etiquette since it wastes people's time. You have someone answering a question that's already been answered on another forum because they didn't know about it.

You need to learn to use a compiler, period. You cannot program without experimentation. You cannot experiment without actually compiling and running programs. There are lots of good compilers and IDEs out there, including:

Code Blocks
Dev C++
Microsoft Visual Studio Express

The above are all free. Install one, type in your program, compile and run it.
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,374 posts
since Jan 2008
Dec 1st, 2008
0

Re: my final questions help please

no i dont wanna do spam.i ask my question there toobecause i dont know how to use a complier.please help me...
gcc a.c .
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: TCP client
Next Thread in C++ Forum Timeline: MSXML





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC