nice explanation
On Apr 9, 1:15 pm, ArPiT BhAtNaGaR arpitbhatnagarm...@gmail.com
wrote:
COOL BRO THIS IS A GOOD SOLN
On Tue, Apr 5, 2011 at 4:10 PM, Azhar Hussain azhar...@gmail.com wrote:
Few Important things about macros, before I explain the output
1. Macros are replaced in
On Apr 5, 3:40 pm, Azhar Hussain azhar...@gmail.com wrote:
Few Important things about macros, before I explain the output
1. Macros are replaced in passes.
2. Macros are not recursive.
regarding the output remember the rule for expansion
A parameter in the replacement list, *UNLESS*
Crystal Clear. Nicely explained.
Thanks!
On Apr 5, 3:40 pm, Azhar Hussain azhar...@gmail.com wrote:
Few Important things about macros, before I explain the output
1. Macros are replaced in passes.
2. Macros are not recursive.
regarding the output remember the rule for expansion
A parameter
try removing
a=(a++)+(++a);
Answer is 13?
how?
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to
@ try run in different compiler u may get different result . its compiler
dependent result.
refer dennis ritchie.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe
i compiled .. the answer is 17 !! ... its 5+5+7 ..evaluate from left
to right
On Nov 6, 8:42 pm, bipul21 bipuljai...@gmail.com wrote:
#includestdio.h
int main()
{
int a=5;
a=a+(a++)+(++a);
printf(%d,a);
return 0;}
answer is 19 but how??
--
You received this
answer is 17i got in gcc comp
On Sun, Nov 7, 2010 at 7:23 PM, Piyush piyushra...@gmail.com wrote:
C standard says that between two sequence points object's stored value can
be modified only once ( by evaluation of expression),
A sequence point occurs in following conditions:
1.
#includestdio.h
int main()
{
int a=5;
a=a+(a++)+(++a);
printf(%d,a);
return 0;
}
answer is 19 but how??
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algoge...@googlegroups.com.
To
@Bipul21: This is nonstandard, so the results are compiler-dependent.
It is improper to have more than one assignment to the same variable
between synchronization points.
Dave
On Nov 6, 10:42 am, bipul21 bipuljai...@gmail.com wrote:
#includestdio.h
int main()
{
int a=5;
firstly evaluate all prefix forms..++a will become 6..then a++ will remain
6..a=7 because postfix form of a will make it so..hence the result
7+6+6=19..
On Sat, Nov 6, 2010 at 9:39 PM, Dave dave_and_da...@juno.com wrote:
@Bipul21: This is nonstandard, so the results are compiler-dependent.
It
10 matches
Mail list logo