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

Answer Posted / ajeet kumar

Ans a=2.

here a=a++/++a; //initial value of a=5.
1)firstly a=a++/++a <---it is pre-increment so firstly this
value will update.i.e a will be 6.
a=a++/6; //a=6
a=6/6; a=1;//after this line executions one increment will left of variable a.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I sort a linked list?

636


What is #include in c?

600


What is the difference between arrays and pointers?

637


Explain the difference between ++u and u++?

640


Which type of language is c?

654






What are different types of variables in c?

571


What are pointers? What are different types of pointers?

632


What is the purpose of the statement: strcat (S2, S1)?

642


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

583


What are volatile variables in c?

522


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

649


explain what is fifo?

634


What does dm mean sexually?

814


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2055


What is openmp in c?

612