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

What are different types of operators?

592


What is context in c?

536


Is file a keyword in c?

496


What does the file stdio.h contain?

597


What language is lisp written in?

613






What is #define size in c?

640


Write a program for Overriding.

680


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2243


Why is c called a structured programming language?

673


Why malloc is faster than calloc?

586


What is the process of writing the null pointer?

605


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4172


write a program to copy the string using switch case?

2395


Why is void main used?

613


What happens if header file is included twice?

650