main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / mazrul
in x=x++;
the above expression is postfix
first we assign 10 into x then increment it by one so value
of x become 11
ic case of
y=++y;
is prefix expression firstly we increment value of y
then assign it to y.
so y become
y=16
| Is This Answer Correct ? | 53 Yes | 17 No |
Post New Answer View All Answers
What is typedef example?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Explain the use of 'auto' keyword in c programming?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
Explain zero based addressing.
What is derived datatype in c?
What does do in c?
Explain the use of #pragma exit?
What is a loop?
What is typeof in c?
Why is #define used?
Why is c called a structured programming language?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
How can I ensure that integer arithmetic doesnt overflow?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.