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
What are different types of operators?
What is context in c?
Is file a keyword in c?
What does the file stdio.h contain?
What language is lisp written in?
What is #define size in c?
Write a program for Overriding.
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
Why is c called a structured programming language?
Why malloc is faster than calloc?
What is the process of writing the null pointer?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
write a program to copy the string using switch case?
Why is void main used?
What happens if header file is included twice?