main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output?
Answer Posted / krzysztof
People... is itt really so hard to compile that and check? Correct answer, compiled with gcc:
56 93
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference between volatile and const volatile?
What is equivalent to ++i+++j?
How do I create a directory? How do I remove a directory (and its contents)?
What is #include stdio h?
which type of aspect you want from the student.
What are derived data types in c?
Where define directive used?
Not all reserved words are written in lowercase. TRUE or FALSE?
How to draw the flowchart for structure programs?
Explain null pointer.
Where are c variables stored in memory?
Explain what’s a signal? Explain what do I use signals for?
What are pointers? What are different types of pointers?
Explain what is a pragma?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.