main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / manju
while calculating the x value,x & y values are post
incremented.So the values of x & y are added and then
incremented i.e. x=56,y=36
while calculating the y value,x & y values are
preincremtned,so x & y values are incremented and then
added i.e. x=57,y=37.
so x=57
y=57+37=94.
| Is This Answer Correct ? | 58 Yes | 18 No |
Post New Answer View All Answers
Explain the advantages of using macro in c language?
Is it acceptable to declare/define a variable in a c header?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Can you write the function prototype, definition and mention the other requirements.
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is build process in c?
What are linker error?
Explain how do you sort filenames in a directory?
Is there a built-in function in C that can be used for sorting data?
When the macros gets expanded?
What is the acronym for ansi?
How does selection sort work in c?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is a node in c?
Explain what are its uses in c programming?