a=5
a=a++/++a

Answer Posted / abhi

answer is 6 because
a=a++/++a
i.e.=
5=5/5+1
hence 6=5/6
5*6=5
30/5=6
reason is that the post increment increment after process
but pre increment increment before the process so th value
is increment before the process

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is file a keyword in c?

504


Do you know the difference between malloc() and calloc() function?

616


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

734


What is #define used for in c?

616


How do you list files in a directory?

564






Explain null pointer.

623


Explain 'bit masking'?

656


Explain what does it mean when a pointer is used in an if statement?

618


What is use of integral promotions in c?

667


Why malloc is faster than calloc?

593


What does c mean in standard form?

599


What is the purpose of clrscr () printf () and getch ()?

598


Explain what are global variables and explain how do you declare them?

644


What are the usage of pointer in c?

704


If I have a char * variable pointing to the name of a function ..

655