a=5
a=a++/++a
Answers were Sorted based on User's Feedback
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 |
What is a union?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What is header file definition?
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,
Is c procedural or object oriented?
What does typeof return in c?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
Why c++ is called c++ and not c+?
what is answer for perfect number????????????????
What is unsigned int in c?
How to removing white spces in c programming only bu using loops