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

Answers were Sorted based on User's Feedback



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

Answer / rukmanee

a=.83

Is This Answer Correct ?    1 Yes 5 No

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

Answer / purvi

a=-12

Is This Answer Correct ?    1 Yes 7 No

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

Answer / aa

A

Is This Answer Correct ?    0 Yes 6 No

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

Answer / 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

More C Interview Questions

Are bit fields portable?

0 Answers   EXL,


When do you say that a digraph is acyclic A)if and only if its first search does not have back arcs B)a digraph is acyclic if and only if its first search does not have back vertices C)if and only if its first search does not have same dfnumber D)None of these

1 Answers   Accenture, IBM,


Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?

2 Answers   Excel,


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

0 Answers   TISL,


What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }

4 Answers   ADITI,






How can I get back to the interactive keyboard if stdin is redirected?

0 Answers  


How will you divide two numbers in a MACRO?

0 Answers   Apps Associates,


What does void main return?

0 Answers  


why programming language C is still used in operating system's kernel??

1 Answers   Wipro,


25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?

11 Answers   CTS, TCS,


what is the difference between while and do while?

2 Answers  


What do you mean by scope of a variable in c?

0 Answers  


Categories